| size.ci.mean.ps | R Documentation |
Computes the sample size required to estimate a difference in population means with desired confidence interval precision in a paired-samples design. Set the Pearson correlation planning value to the smallest value within a plausible range for a conservatively large sample size. Set the variance planning value to the largest value within a plausible range for a conservatively large sample size.
For more details, see Section 4.26 of Bonett (2021, Volume 1)
size.ci.mean.ps(alpha, var, cor, w)
alpha |
alpha level for 1-alpha confidence |
var |
planning value of average variance of the two measurements |
cor |
planning value of correlation between measurements |
w |
desired confidence interval width |
Returns the required sample size
Bonett2021statpsych
size.ci.mean.ps(.05, 5.0, .5, 2.0)
# Should return:
# Sample size
# 22
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.