| 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.
For more details, see Section 1.14 of Bonett (2021, Volume 3)
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
Bonett2021statpsych
size.ci.prop(.05, .5, .1)
# Should return:
# Sample size
# 385
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.