Sample size calculation: comparison of two proportions

Calculates the required sample size for the comparison of two proportions. The sample size takes into account the required significance level and power of the test (see Sample size calculation: Introduction).

Required input

Example

In the example you are interested in detecting a difference between two proportions of a least 15. You expect the two proportions to be equal to 75 and 60 in group 1 and 2 respectively. You will include twice as many cases in group 1 as in group 2. You plan to analyse the results of your study using a Chi-squared test.

For α -level you select 0.05 and for β -level you select 0.20 (power is 80%).

Sample size calculation for comparison of two proportions.

After you click Calculate the program displays the required sample size, which is 224 in the first group and 112 in the second group, i.e. 336 cases in total.

A table shows the required sample size for different Type I and Type II Error levels.

Literature

See also