size.ci.prop | R Documentation |
Computes the sample size required to estimate a population proportion with desired confidence interval precision. Set the proportion planning value to .5 for a conservatively large sample size.
size.ci.prop(alpha, p, w)
alpha |
alpha level for 1-alpha confidence |
p |
planning value of proportion |
w |
desired confidence interval width |
Returns the required sample size
size.ci.prop(.05, .4, .2)
# Should return:
# Sample size
# 93
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.