View source: R/fisherTransform.R
ifisherZ | R Documentation |
fisherZ
returns the inverse (squeezed) Fisher's Z transformed Pearson's r. This will fail if a matrix is used as input instead of a vector.
ifisherZ(cormat)
cormat |
vector of Fisher's Z transformed Pearson correlations or an eignevector |
This function returns the inverse (squeezed) Fisher's Z transformed Pearson's r
Back transformed Fisher's Z
#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)
#Back transform
mat.transform.inverse <- apply(mat.transform, 1, ifisherZ)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.