size.ci.spear | R Documentation |
Computes the sample size required to estimate a population Spearman correlation with desired confidence interval precision. Set the correlation planning value to the smallest absolute value within a plausible range for a conservatively large sample size.
size.ci.spear(alpha, cor, w)
alpha |
alpha level for 1-alpha confidence |
cor |
planning value of Spearman correlation |
w |
desired confidence interval width |
Returns the required sample size
Bonett2000statpsych
size.ci.spear(.05, .362, .25)
# Should return:
# Sample size
# 200
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.