R/statpsych3.R
power.prop2.Rd
Computes the approximate power for a test of equal population proportions in a 2-group design for the planned sample sizes. This function requires planning values for both proportions. Set the proportion planning values to .5 for a conservatively low power estimate. The planning value for the proportion difference could be set to the difference of the two proportion planning values or it could be set to a minimally interesting effect size.
power.prop2(alpha, n1, n2, p1, p2, es)
alpha level for hypothesis test
planned sample size for group 1
planned sample size for group 2
planning value of proportion for group 1
planning value of proportion for group 2
planning value of proportion difference
Returns the approximate power of the test
power.prop2(.05, 60, 40, .5, .5, .2)
#> Power
#> 0.4998959
# Should return:
# Power
# 0.4998959