Suppose we want to estimate the sample size needed for a two-sample
proportion test design to compare a control group to a treatment group,
with a proportion of 0.2 and 0.15 respectively. The result tells us that
we need a sample size at least 906 random, independent events for 80%
power between a control proportion of 0.2 to a treatment proportion of
0.15.
Two-sample comparison of proportions power calculation
n = 905.3658
p1 = 0.15
p2 = 0.2
sig.level = 0.05
power = 0.8
alternative = two.sided
NOTE: n is number in *each* group