r.test(n, r12, r34 = NULL, r23 = NULL, r13 = NULL, r14 = NULL, r24 = NULL, n2 = NULL,pooled=TRUE, twotailed = TRUE)
2) For sample sizes of n and n2 (n2 = n if not specified) find the z of the difference between the z transformed correlations divided by the standard error of the difference of two z scores.
3) For sample size n, and correlations ra= r12, rb= r23 and r13 specified, test for the difference of two dependent correlations.
4) For sample size n, test for the difference between two dependent correlations involving different variables.
For clarity, correlations may be specified by value. If specified by location and if doing the test of dependent correlations, if three correlations are specified, they are assumed to be in the order r12, r13, r23.
Steiger, J.H. (1980), Tests for comparing elements of a correlation matrix, Psychological Bulletin, 87, 245-251.
corr.test
which tests all the elements of a correlation matrix, and cortest.mat
to compare two matrices of correlations. r.test extends the tests in paired.r
,r.con
n <- 30
r <- seq(0,.9,.1)
rc <- matrix(r.con(r,n),ncol=2)
test <- r.test(n,r)
r.rc <- data.frame(r=r,z=fisherz(r),lower=rc[,1],upper=rc[,2],t=test$t,p=test$p)
round(r.rc,2)
r.test(50,r)
r.test(30,.4,.6) #test the difference between two independent correlations
r.test(103,.4,.5,.1) #Steiger case A
r.test(103,.5,.6,.7,.5,.5,.8) #steiger Case B
Run the code above in your browser using DataLab