dCorrs | R Documentation |
Z-transforms correlation coefficients (Pearson or Spearman) and then calculates the difference in z-scores between the two conditions divided by the square root of the standard errors (which is inversely proportion to the sample sizes used to calculate the correlations).
dCorrs(rho1, n1, rho2, n2, corrType = "pearson")
rho1 |
Numeric vector of correlation coefficients in condition 1. |
n1 |
Numeric vector of the number of samples used in the correlation calculations in condition 1. |
rho2 |
Numeric vector of correlation coefficients in condition 2. |
n2 |
Numeric vector of the number of samples used in the correlation calculations in condition 2. |
corrType |
The correlation type of the analysis, limited to "pearson" or "spearman". |
Numeric vector with scaled difference in z-scores of correlations between the two conditions.
Tests For Rank Correlation Coefficients, I. http://biomet.oxfordjournals.org/content/44/3-4/470.full.pdf+html
rho1 = runif(100, -1, 1); rho2 = runif(100, -1, 1)
n1 = rep(100, 100); n2 = rep(110, 100)
dcorrs_res = dCorrs(rho1, n1, rho2, n2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.