size.test.prop | R Documentation |
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)
alpha |
alpha level for hypothesis test |
pow |
desired power |
p |
planning value of proportion |
h |
null hypothesis value of proportion |
Returns the required sample size
Fleiss2003statpsych
size.test.prop(.05, .9, .5, .3)
# Should return:
# Sample size
# 65
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.