size.ci.spear2: Sample size for a 2-group Spearman correlation difference...

View source: R/statpsych2.R

size.ci.spear2R Documentation

Sample size for a 2-group Spearman correlation difference confidence interval

Description

Computes the sample size required to estimate a difference in population Spearman correlations with desired confidence interval precision in a 2-group design. Set the correlation planning values to the smallest absolute values within their plausible ranges for a conservatively large sample size.

Usage

size.ci.spear2(alpha, cor1, cor2, w)

Arguments

alpha

alpha level for 1-alpha confidence

cor1

Spearman correlation planning value for group 1

cor2

Spearman correlation planning value for group 2

w

desired confidence interval width

Value

Returns the required sample size

References

\insertRef

Bonett2000statpsych

Examples

size.ci.spear2(.05, .8, .5, .2)

# Should return:
# Sample size per group
#                   314
 


statpsych documentation built on June 10, 2025, 5:11 p.m.