Learn R Programming

RNOmni (version 1.0.0)

RankNorm: Rank-Normalize

Description

Applies the rank-based inverse normal transform (INT) to a numeric vector. The INT can be broken down into a two-step procedure. In the first, the observations are transformed onto the probability scale using the empirical cumulative distribution function (ECDF). In the second, the observations are transformed onto the real line, as Z-scores, using the probit function.

Usage

RankNorm(u, k = 0.375)

Value

Numeric vector of rank normalized measurements.

Arguments

u

Numeric vector.

k

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

See Also

  • Direct INT test DINT.

  • Indirect INT test IINT.

  • Omnibus INT test OINT.

Examples

Run this code
# Draw from chi-1 distribution
y <- rchisq(n = 1e3, df = 1)
# Rank normalize
z <- RankNorm(y)
# Plot density of transformed measurement
plot(density(z))

Run the code above in your browser using DataLab