Proportions: One and Two Groups
Calculate the sample size required to detect a specified odds ratio between two independent proportions at a chosen significance level and statistical power. Uses the normal-approximation two-proportion sample-size calculation with the odds ratio converted to the corresponding alternative proportion.
This calculator implements the normal-approximation sample-size method used for tests of two independent proportions when the effect is expressed as an odds ratio. this method describes its two-proportion procedure as computing power and sample size for hypothesis tests expressed in terms of the difference, ratio, or odds ratio of two independent proportions.
Let p2 be the expected proportion in Group 2 and let OR be the alternative odds ratio. The corresponding Group 1 proportion is obtained from the definition of the odds ratio:
This guarantees that the two proportions have the specified odds ratio:
If k = N2/N1 is the Group 2 to Group 1 allocation ratio, the weighted pooled proportion is:
For a two-sided test, the normal-approximation sample size for Group 1 is:
Here, β = 1 − power. The required Group 2 sample size before integer rounding is:
The calculator rounds each group size upward to the next whole subject. The displayed total is the sum of the two rounded group sizes.
the relevant methodological literature provides a worked sample-size example using a two-sided alpha of 0.05, 90% power, equal allocation, Group 1 proportion 0.54, and Group 2 proportion 0.44. Expressing the same alternative through the odds ratio gives OR = 1.494. This yields 524 subjects in each group, for a total sample size of 1,048.
The implementation reproduces this this method validation target using the unrounded normal-approximation calculation before rounding the group sample sizes upward.
the software, LLC / this method Sample Size Software. Tests for Two Proportions. the relevant methodological literature, Chapter 200. The procedure computes power and sample size for tests of the difference, ratio, or odds ratio of two independent proportions and provides the worked example used for validation.
Armitage, P., Berry, G., & Matthews, J.N.S. (2002). Statistical Methods in Medical Research, 4th ed. Blackwell Science. The normal-approximation two-proportion framework is also documented in the published sample-size treatment referenced by statistical software implementations.
For additional background, see the official the relevant methodological literature for two-proportion sample-size procedures .