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

Value

Fisher Z transformed Pearson correlations

Examples


#Generate a random binary (-1, 1) matrix
(mat <- matrix(sample(c(1,-1), 25, replace = TRUE), ncol = 5))

#Correct matrix diag
diag(mat) <- 1

#Transform
fisherZ(mat)

biobenkj/compartmentalizer documentation built on June 10, 2025, 1:57 a.m.