inflation: Computing the genomic control inflation factor from a given...

Description Usage Arguments Value See Also Examples

View source: R/inflation.R

Description

This function gives the inflation of a set of p-values (or 1-df chi-squared statistics).

Usage

1
inflation(p, is.p, na.rm = FALSE)

Arguments

p

a numeric vector. It can contain p-values or 1-df chi-squared statistics.

is.p

a logical value indicating whether p contain p-values or a vector of 1-df chi-squared statistics.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

The inflation factor is returned.

See Also

meta

Examples

1
2
3
set.seed(0)
p <- runif(10)
inflation(p, TRUE)

zhangh12/ARTP3 documentation built on Aug. 16, 2019, 7:39 p.m.