ARTP2 (version 0.9.30.1)

inflation:

Description

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

Usage

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

Run this code
set.seed(0)
p <- runif(10)
inflation(p, TRUE)

Run the code above in your browser using DataCamp Workspace