powered by
Computes the sample size required to test a population proportion with desired power using a correction for continuity in a 1-group design.
size.test.prop(alpha, pow, p, h)
Returns the required sample size
alpha level for hypothesis test
desired power
planning value of proportion
null hypothesis value of proportion
Fleiss2003statpsych
size.test.prop(.05, .9, .5, .3) # Should return: # Sample size # 65
Run the code above in your browser using DataLab