fisherZ: Fisher's Z transformation

Description Usage Arguments Details Value Examples

View source: R/fisherTransform.R

Description

fisherZ returns (squeezed) Fisher's Z transformed Pearson's r

Usage

1
fisherZ(cormat)

Arguments

cormat

Pearson correlation matrix

Details

This function returns (squeezed) Fisher's Z transformed Pearson's r

Value

Fisher Z transformed Pearson correlations

Examples

1
2
3
4
5
6
7
8
#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)

JordanVeldboom/compartmap documentation built on July 3, 2020, 6:32 p.m.