Learn R Programming

qtl (version 1.66)

nqrank: Transform a vector of quantitative values to the corresponding normal quantiles

Description

Transform a vector of quantitative values to the corresponding normal quantiles (preserving the mean and SD).

Usage

nqrank(x, jitter)

Value

A numeric vector; the input x is converted to ranks and then to normal quantiles.

Arguments

x

A numeric vector

jitter

If TRUE, randomly jitter the values to break ties.

Author

Karl W Broman, broman@wisc.edu

See Also

rank, qnorm, transformPheno

Examples

Run this code
data(hyper)

hyper <- transformPheno(hyper, pheno.col=1, transf=nqrank)

Run the code above in your browser using DataLab