Learn R Programming

RNOmni (version 0.3.0)

rankNormal: Rank-Normalize

Description

Applies the rank based inverse normal transform (INT) to a numeric vector. INT is indicated for continuous outcomes. See the vignette for the definition of INT.

Usage

rankNormal(u, k = 3/8)

Arguments

u

Numeric vector.

k

Offset. Defaults to (3/8), correspond to the Blom transform.

Value

Numeric vector of rank normalized measurements.

Examples

Run this code
# NOT RUN {
# Draw from chi-1 distribution
y = rchisq(n=1000,df=1);
# Rank normalize
z = RNOmni::rankNormal(y);
# Plot density of transformed measurement
plot(density(z));
# }

Run the code above in your browser using DataLab