MDfishersz: Fisher's z Transformation of Correlation Matrices

Description Usage Arguments Details Value References Examples

Description

Stabalizes the variances of correlations. Operates on a list of correlation matrices.

Usage

1
  MDfishersz(cor.mats)

Arguments

cor.mats

A list of correlation matrices.

Details

Uses Fisher's (1915) transformation:

{z}' = .5ln ≤ft(\frac{1 + r}{1 - r}\right)

Value

Returns a list of correlation matrices with Fisher's z transformation applied.

References

Fisher, R. A. (1915) Frequency distribution of the values of the correlation coefficient in samples from an indefinitely large population. Biometrika, Vol. 10, pp. 507-521.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
path <- system.file("extdata/bibTest.bib", package = "metaDAT")
dat <- read.MD(path)
correlations <- MDapply(dat, "correlation_triangle", MDlist2matrix)
MDfishersz(correlations)
#reassign
dat <- MDassign(dat, "fishz.cor", MDfishersz(correlations))
dat

#In less steps:
fishFUN <- function(x) MDfishersz(MDlist2matrix(x))
MDapply(dat, "correlation_triangle", fishFUN, newvar = "fishz.cor")

trinker/metaDAT documentation built on May 31, 2019, 8:52 p.m.