rbi_normal_transform {modgo}R Documentation

Rank based inverse normal transformation

Description

Applies the rank based inverse normal transformation to numeric vector.

Usage

rbi_normal_transform(x, ties_method = c("max", "min", "average"))

Arguments

x

a numeric vector

ties_method

Method on how to deal with equal values during rank transformation.Acceptable input:"max","average","min". This parameter is passed to the parameter ties.method of rank.

Details

The rank based inverse normal transformation (Beasley et al. (2009)), transforms values of a vector to ranks and then applies the quantile function of the standard normal distribution.

Value

A numeric vector with rank transformed values.

Author(s)

Andreas Ziegler, Francisco M. Ojeda, George Koliopanos

References

Beasley, T.M. and Erickson S. and Allison D.B. (2009), “Rank-based inverse normal transformations are increasingly used, but are they merited?,” Behavior genetics 39, 580-595.

Examples


data("Cleveland",package="modgo")
test_rank <- rbi_normal_transform(Cleveland[,1])


[Package modgo version 1.0.1 Index]