| size.ci.mean | R Documentation |
Computes the sample size required to estimate a population mean with desired confidence interval precision. Set the variance planning value to the largest value within a plausible range for a conservatively large sample size.
For more details, see Section 1.28 of Bonett (2021, Volume 1)
size.ci.mean(alpha, var, w)
alpha |
alpha level for 1-alpha confidence |
var |
planning value of response variable variance |
w |
desired confidence interval width |
Returns the required sample size
Bonett2021statpsych
size.ci.mean(.05, 6.0, 1.5)
# Should return:
# Sample size
# 43
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.