Learn R Programming

mppa (version 1.0)

F.test: Fisher's method for combining p-values

Description

Compute the p-value for $-2 \sum \log p_i$.

Usage

F.test(x, returnstat = FALSE)

Arguments

x
a vector of p-values.
returnstat
if TRUE then return the statistic as well as the p-value.

Value

if returnstat=TRUE then a pair (p,T) where p is the p-value and T is the test, otherwise just p.

References

Mosteller, F. and Fisher, R. A. (1948). Questions and answers. The American Statistician, 2(5):pp. 30-31.

See Also

TMT.test, simes.test

Examples

Run this code
## This should be uniformly distributed
F.test(runif(10))

Run the code above in your browser using DataLab