R/statpsych3.R
power.prop.Rd
Computes the approximate power of a one-sample proportion test for a planned sample size. Set the proportion planning value to .5 for a conservatively low power estimate. The value of the effect size need not be based on the proportion planning value.
power.prop(alpha, n, p, es)
alpha level for hypothesis test
planned sample size
planning value of proportion
planning value of proportion minus null hypothesis value
Returns the approximate power of the test
power.prop(.05, 40, .5, .2)
#> Power
#> 0.7156166
# Should return:
# Power
# 0.7156044