Learn R Programming

statpsych (version 1.7.0)

size.ci.spear: 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)

Value

Returns the required sample size

Arguments

alpha

alpha level for 1-alpha confidence

cor

planning value of Spearman correlation

w

desired confidence interval width

References

Bonett2000statpsych

Examples

Run this code
size.ci.spear(.05, .362, .25)

# Should return:
# Sample size
#         200
 

Run the code above in your browser using DataLab