combineBonferroni: Combine p-values with Bonferroni's method

Description Usage Arguments Details Value Author(s) Examples

View source: R/meta.R

Description

This function combines p-values from the various statistical tests supported by metaseqR2 using the Bonferroni's method (see reference in the main metaseqr2 help page or in the vignette).

Usage

1
    combineBonferroni(p, zerofix = NULL)

Arguments

p

a vector of p-values for each statistical tests).

zerofix

NULL (default) or a fixed numeric value between 0 and 1.

Details

The argument zerofix is used to correct for the case of a p-value which is equal to 0 as a result of internal numerical and approximation procedures. When NULL, random numbers greater than 0 and less than or equal to 0.5 are used to multiply the offending p-values with the lowest provided non-zero p-value, maintaining thus a virtual order of significance, avoiding having the same p-values for two tests and assuming that all zero p-values represent extreme statistical significance. When a numeric between 0 and 1, this number is used for the above multiplication instead.

Value

A vector of combined p-values.

Author(s)

Panagiotis Moulos

Examples

1
2
p <- matrix(runif(300),100,3)
pc <- combineBonferroni(p)

metaseqR2 documentation built on Nov. 8, 2020, 7:34 p.m.