gclambda: Compute genomic control coefficient

Description Usage Arguments Value Author(s) Examples

View source: R/qq10.R

Description

Computes a measure from departure from uniform [0,1] distribution called the genomic control coefficient, lambda.

Usage

1
gclambda(p, df = 1, prob = 0.5)

Arguments

p

A vector of observed p-values

df

Degrees of freedom of chi-squared distribution

prob

The quantile of the chi-squared distribution

Value

The genomic control coefficient.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com

Examples

1
2
gclambda(runif(1000))
gclambda(rbeta(1000, shape1 = 0.6, shape2 = 1))

tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.