rdif.nul | R Documentation |
Tests the hypothesis that two correlations are significantly different
rdif.nul(r1, r2, n1, n2)
r1 |
Correlation 1 |
r2 |
Correlation 2 |
n1 |
Sample size for |
n2 |
Sample size for |
First converts r to z' for each correlation. Then constructs a z test for the difference z <- (z1 - z2)/sqrt(1/(n1-3)+1/(n2-3))
Returns a table with 2 elements
zDIF |
z value for the H0 |
p |
p value |
Does not test alternate hypotheses (e.g., difference = .1)
Thomas D. Fletcher t.d.fletcher05@gmail.com
Cohen, J., Cohen, P., West, S. G., & Aiken, L. S. (2003). Applied multiple regression/correlation analysis for the behavioral sciences (3rd ed.). Mahwah, NJ: Lawrence Erlbaum.
r.nil
,
CIrdif
# From ch. 2 in Cohen et al (2003)
rdif.nul(.657, .430, 62, 143)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.