Derive log relative risk and associated confidence intervals for binary outcomes

calculate_log_rel_risk_bin(prop1, prop2, N1, N2, cl)

Arguments

prop1

(numeric)
Proportion of cases in active treatment

prop2

(numeric)
Proportion of cases in comparator treatment

N1

(numeric)
Total number of subjects in active treatment

N2

(numeric)
Total number of subjects in comparator treatment

cl

(numeric)
confidence level

Examples

calculate_log_rel_risk_bin(
  prop1 = .45, prop2 = 0.25, N1 = 500, N2 = 500,
  cl = 0.95
)
#> [2024-07-02 11:58:16] >
#> log relative risk CI for binary outcomes is calculated
#> and saved
#>        diff         se     lower     upper
#> 1 0.5877867 0.09189366 0.4076784 0.7678949