View source: R/compar_r_fisher.R
compar_r_fisher  R Documentation 
The function compares two correlation coefficients obtained from different sample sizes using ZFisher transformation.
compar_r_fisher(data)
data 
An object of class

The ZFisher method consists in computing z scores from the correlation coefficients and to compare these z scores. z scores are computed as follows : Let n1 and r1 be the sample size and the correlation coefficient, z1 = (1/2)*log( (1+r1) / (1r1) ) Then, a test's statistic is computed from z1 and z2 : Z = (z1z2) / sqrt( (1/(n13)) + (1/(n23))) If Z is above the limit given by the alpha value, then the difference between r1 and r2 is significant
An object of class data.frame
with the same columns as 'data'
and 4 columns more : z1, z2 (respective zscores), Z (test's statistic) and
p (pvalue) of the test.
P. Savary
df < data.frame(n1 = rpois(n = 40, lambda = 85), n2 = rpois(n = 40, lambda = 60), r1 = runif(n = 40, min = 0.6, max = 0.85), r2 = runif(n = 40, min = 0.55, max = 0.75)) data < compar_r_fisher(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.