zscores {tensr}R Documentation

Normal scores.

Description

This function applies a quantile-quantile transformation to the data, resulting in a distribution that is approximately normal but has the same ranks as the original data.

Usage

zscores(y, ties.method = "average")

Arguments

y

A vector.

ties.method

The option ties.method in the rank function.

Value

A vector of the same length as y.

Author(s)

Peter Hoff.

Examples

y <- rexp(100)
z <- tensr:::zscores(y)
par(mfrow = c(1, 3))
hist(y)
hist(z)
plot(y,z)

[Package tensr version 1.0.1 Index]