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)

ARTP2 documentation built on Dec. 1, 2018, 1:05 a.m.