rankZ: Rank Z transformation

Description Usage Arguments Details Value Author(s) Examples

Description

This is also called the inverse normal transformation. We rank the data in x, divide by n-1, and take quantiles from the normal distribution using qnorm.

Usage

1
  rankZ(x)

Arguments

x

Numeric vector of values to be transformed.

Details

We often use this when there are hundreds or thousands of phenotypes. This allows us to calculate permutation derived thresholds once and use them for all phenotypes.

Value

Numeric vector with a normal distribution.

Author(s)

Daniel Gatti

Examples

1
  rankZ(rlnorm(20))

DOQTL documentation built on May 6, 2019, 3:09 a.m.