fisherZ: Fisher's Z transformation

View source: R/fisherTransform.R

fisherZR Documentation

Fisher's Z transformation

Description

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

Usage

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


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

biobenkj/compartmap documentation built on Oct. 18, 2023, 11:11 a.m.