size.ci.spear: Sample size for a Spearman correlation confidence interval

View source: R/statpsych2.R

size.ci.spearR Documentation

Sample size for a Spearman correlation confidence interval

Description

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.

Usage

size.ci.spear(alpha, cor, w)

Arguments

alpha

alpha level for 1-alpha confidence

cor

planning value of Spearman correlation

w

desired confidence interval width

Value

Returns the required sample size

References

\insertRef

Bonett2000statpsych

Examples

size.ci.spear(.05, .362, .25)

# Should return:
# Sample size
#         200
 


statpsych documentation built on Sept. 11, 2024, 7:42 p.m.