Fisher_r2z: Fisher's r to z transformation.

View source: R/Transform_Functions.R

Fisher_r2zR Documentation

Fisher's r to z transformation.

Description

This function uses Fisher's r to z transformation to convert a correlation into a z-score.

Usage

Fisher_r2z(r)

Arguments

r

A numeric value (or vector) for the correlation coefficient(s).

Details

This applies Fisher's r to z transformation to convert a correlation into a z-score. Numerical values of r close to -1 or 1 result Inf or -Inf, respectively. Missing values of r result in NA values. This transformation is also called the inverse hyperbolic tangent transformation (often written as arctanh), so Fisher_r2z() is a wrapper for the base::atanh() function.

Value

A numeric value (or vector) for the z-scores.

References

To be added later.

See Also

atanh for the base function used in this function. Fisher_z2r for the inverse transformation that converts z back to r.

Examples

Fisher_r2z(.3)
Fisher_r2z(c(-1, -.99, NA, 0, .5, .99, 1))


sjpierce/piercer documentation built on Dec. 30, 2024, 3:28 p.m.