View source: R/fisherTransform.R
fisherZ | R Documentation |
fisherZ
returns (squeezed) Fisher's Z transformed Pearson's r
fisherZ(cormat)
cormat |
Pearson correlation matrix |
This function returns (squeezed) Fisher's Z transformed Pearson's r
Fisher Z transformed Pearson correlations
#Generate a random binary (-1, 1) matrix
mat <- matrix(sample(c(1,-1), 10000, replace = TRUE), ncol = 100)
#Correct matrix diag
diag(mat) <- 1
#Transform
mat.transform <- fisherZ(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.