trans_inv_normal: Inverse normal transformation

Description Usage Arguments Value References Examples

View source: R/inv_normal.R

Description

Transforms any variable into a standard normal distributed variable N(0,1).

Usage

1
trans_inv_normal(x, const = 3/8)

Arguments

x

numeric vector that needs to be transformed

const

numeric value, 3/8 and 0.5 recommended.

Value

Numeric vector of length(x) that is standard normally distributed

References

See also https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2921808/

Examples

1
2
3
4
5
6
7
8
9
X <- runif(1000)

X.trans <- trans_inv_normal(X)
par(mfrow = c(1, 2))
hist(X)
hist(X.trans)
par(mfrow = c(1, 2))
qqnorm(X)
qqnorm(X.trans)

sinarueeger/GWAS.utils documentation built on July 30, 2019, 5:21 p.m.