Sample size for logistic regression detecting a target odds ratio
Source:R/inference.R
morie_sample_size_logistic.RdUses the formula from Hsieh et al. (1998): $$n = \frac{(z_{\alpha/2} + z_\beta)^2}{p_1(1-p_1) [\log(OR)]^2}$$
R/inference.R
morie_sample_size_logistic.RdUses the formula from Hsieh et al. (1998): $$n = \frac{(z_{\alpha/2} + z_\beta)^2}{p_1(1-p_1) [\log(OR)]^2}$$