gc.lambda: Estimation of the genomic control inflation statistic...

View source: R/gc.lambda.R

gc.lambdaR Documentation

Estimation of the genomic control inflation statistic (lambda)

Description

Estimation of the genomic control inflation statistic (lambda)

Usage

gc.lambda(x, logscale = FALSE, z = FALSE)

Arguments

x

A real vector (p or z).

logscale

A logical variable such that x as -log10(p).

z

A flag to indicate x as a vector of z values.

Value

Estimate of inflation factor.

Examples

set.seed(12345)
p <- runif(100)
gc.lambda(p)
lp <- -log10(p)
gc.lambda(lp,logscale=TRUE)
z <- qnorm(p/2)
gc.lambda(z,z=TRUE)

gap documentation built on Aug. 26, 2023, 5:07 p.m.