ci.spear2: Confidence interval for a 2-group Spearman correlation...

View source: R/statpsych2.R

ci.spear2R Documentation

Confidence interval for a 2-group Spearman correlation difference

Description

Computes a confidence interval for a difference in population Spearman correlations in a 2-group design.

Usage

ci.spear2(alpha, cor1, cor2, n1, n2)

Arguments

alpha

alpha level for 1-alpha confidence

cor1

estimated Spearman correlation for group 1

cor2

estimated Spearman correlation for group 2

n1

sample size for group 1

n2

sample size for group 2

Value

Returns a 1-row matrix. The columns are:

  • Estimate - estimated correlation difference

  • SE - standard error

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Bonett2000statpsych

\insertRef

Zou2007statpsych

Examples

ci.spear2(.05, .54, .48, 180, 200)

# Should return:
#      Estimate         SE         LL        UL
# [1,]     0.06 0.08124926 -0.1003977 0.2185085     
 


statpsych documentation built on July 9, 2023, 6:50 p.m.