Skip to contents

Transform correlation coefficients with atanh(r) while rejecting values outside the open interval (-1, 1).

Usage

fisher_z_transform(correlations)

Arguments

correlations

Numeric correlation vector.

Value

Numeric vector of transformed correlations.

Examples

fisher_z_transform(c(-0.5, 0, 0.5))
#> [1] -0.5493061  0.0000000  0.5493061