fisher.sum: A function to calculate Fisher's sum for a set of p-values

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

This method combines a set of p-values using Fisher's method:

S = -2 ∑ \log p

Usage

1
fisher.sum(p, zero.sub=0.00001, na.rm=FALSE)

Arguments

p

A vector of p-values

zero.sub

Replacement for 0 values.

na.rm

Should NA values be removed before calculating the sum

Details

As log(0) results in Inf we replace p-values of 0 by default with a small float. If you want to keep them as 0 you have to provide 0 as a parameter in zero.sub.

Note that only p-values between 0 and 1 are allowed to be passed to this method.

Value

Fisher's sum as described above.

Note

This function was copied from the CRAN package MADAM which is no longer maintained. Recognition goes to the original author(s) below.

Author(s)

Karl Kugler <karl@eigenlab.net>

References

Fisher, R.A. (1925). Statistical Methods for Research Workers. Oliver and Boyd (Edinburgh).

See Also

fisher.method

Examples

1
2
fisher.sum(c(0.2,0.05,0.05))
fisher.sum(c(0.2,0.05,0.05, NA), na.rm=TRUE)

pmoulos/metaseqR-local documentation built on May 9, 2019, 1:13 a.m.