Learn R Programming

qtl (version 1.44-9)

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)

Arguments

x

A numeric vector

jitter

If TRUE, randomly jitter the values to break ties.

Value

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

See Also

rank, qnorm, transformPheno

Examples

Run this code
# NOT RUN {
data(hyper)

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

Run the code above in your browser using DataLab