calculate_log_odds_ratio_bin.RdDerive log odds ratio and associated confidence intervals for binary outcomes
calculate_log_odds_ratio_bin(prop1, prop2, N1, N2, cl)(numeric)
Proportion of cases in active treatment
(numeric)
Proportion of cases in comparator treatment
(numeric)
Total number of subjects in active treatment
(numeric)
Total number of subjects in comparator treatment
(numeric)
confidence level
calculate_log_odds_ratio_bin(
prop1 = .45, prop2 = 0.25, N1 = 500, N2 = 500,
cl = 0.95
)
#> [2024-07-02 11:58:15] >
#> log odds ratio CI for binary outcomes is calculated and saved
#> diff se lower upper
#> 1 0.8979416 0.1369214 0.6295805 1.166303