genomic.inflation.factor: Evalutes the genomic inflation factor (lambda)

View source: R/genomic.inflation.factor.R

genomic.inflation.factorR Documentation

Evalutes the genomic inflation factor (lambda)

Description

Evalutes the genomic inflation factor (lambda) for genome-wide association studies. In details, lambda is the observed median value of the chi-squared statistic for the null markers divided by the expected median value of the chi-squared statistic (approximately 0.456 for 1 degree of freedom tests).

Usage

genomic.inflation.factor(values, type = "pvalue")

Arguments

values

the statistic distribution

type

statistic distribution (allowed: zscore, chisq, pvalue – default: pvalue)

Value

the "inflation factor" lambda

Author(s)

Alessia Visconti

Examples

pvalues <- abs(rnorm(1000, mean=0.001, sd=0.1))
genomic.inflation.factor(pvalues, "pvalue")

alesssia/timesaveR documentation built on Jan. 26, 2024, 5:21 p.m.