paired.r(xy, xz, yz=NULL, n, n2=NULL,twotailed=TRUE)
If the correlations are not independent (i.e., they are from the same sample) then the correlation with the third variable r(yz) must be specified. Find a t statistic for the difference of thee two dependent correlations.
r.test
for more tests of independent as well as dependent (paired) tests. p.rep.r
for the probability of replicating a particular correlation.
cor.test
from stats for testing a single correlation and corr.test
for finding the values and probabilities of multiple correlations. See also set.cor
to do multiple correlations from matrix input.paired.r(.5,.3, .4, 100) #dependent correlations
paired.r(.5,.3,NULL,100) #independent correlations same sample size
paired.r(.5,.3,NULL, 100, 64) # independent correlations, different sample sizes
Run the code above in your browser using DataLab