powered by
This function gives the inflation of a set of p-values (or 1-df chi-squared statistics).
inflation(p, is.p, na.rm = FALSE)
a numeric vector. It can contain p-values or 1-df chi-squared statistics.
a logical value indicating whether p contain p-values or a vector of 1-df chi-squared statistics.
p
a logical value indicating whether NA values should be stripped before the computation proceeds.
NA
The inflation factor is returned.
meta
# NOT RUN { set.seed(0) p <- runif(10) inflation(p, TRUE) # }
Run the code above in your browser using DataLab