FisherMethodPValue: Perform Fisher's Method for combining p-values

Description Usage Arguments Details Value Examples

Description

FisherMethodPValue combines p-values using Fisher's method.

Usage

1
FisherMethodPValue(pvals, zero.sub = 1e-05, na.rm = FALSE)

Arguments

pvals

A matrix or data.frame containing the p-values from the single tests

zero.sub

Replacement for p-values of 0

na.rm

Logical indicating whether NA values should be removed from the analysis.

Details

Function for combining p-values by performing Fisher's method, which combines p-values to a statistic:

χ_{2k}^k = -2 ∑_{i = 1}^{k} ln(p_i)

Value

A numeric vector with combined p-value

Examples

1
2
3
4
5
## Not run: 
pp <- matrix(c(runif(20),c(0.001,0.02,0.03,0.001)), ncol=4)
FisherMethodPValue(pp)

## End(Not run)

okg3/RNAEditingAnalysisTools documentation built on April 2, 2020, 5:04 a.m.