To compute the power of an ANOVA-type test for proportions. It can be used for the sample size estimation.
ppower(effect.size, ngroup, n0, n1, range.p, alpha=0.05, gridsize=512)
Difference between the two proportions
Levels of the treatment
Sample sizes.
Approximate range of the proportion of control group.
Significance level: experimentwise error rate.
A (fine) grid size to compute the power when no (less)
prior knowledge about p0
can be used.
The power of the test.
Wang, Bin. (TBA).