dCorrs: Differential correlation between two conditions.

Description Usage Arguments Value References Examples

Description

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).

Usage

1
dCorrs(rho1, n1, rho2, n2, corrType = "pearson")

Arguments

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".

Value

Numeric vector with scaled difference in z-scores of correlations between the two conditions.

References

Tests For Rank Correlation Coefficients, I. http://biomet.oxfordjournals.org/content/44/3-4/470.full.pdf+html

Examples

1
2
3
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)

ryananeff/DGCA documentation built on June 13, 2019, 12:57 a.m.