bonferroni: Bonferroni correction...

View source: R/wrapperFunctions.R

bonferroniR Documentation

Bonferroni correction...

Description

Bonferroni correction

Usage

bonferroni(pValues, alpha, silent=FALSE)

Arguments

pValues

A numeric vector containing the unadjusted pValues. No assumption is made on the dependence structure.

alpha

The overall type I error at which the FWER shall be controlled (optional).

silent

logical scalar. If TRUE no output is generated.

Details

The classical Bonferroni correction outputs adjusted p-values, ensuring strong FWER control under arbitrary dependence of the input p-values. It simply multiplies each input p-value by the total number of hypotheses (and ceils at value 1).

It is recommended to use Holm's step-down instead, which is valid under the exact same assumptions and more powerful.

Value

A list containing:

adjPValues

A numeric vector containing the new adjusted pValues

rejected

(if alpha is given) A logical vector indicating which hypotheses are rejected

errorControl

A Mutoss S4 class of type errorControl, containing the type of error controlled by the function.

Author(s)

MuToss-Coding Team

References

Bonferroni, C. E. (1935) Il calcolo delle assicurazioni su gruppi di teste. 'In Studi in Onore del Professore Salvatore Ortu Carboni. Rome: Italy, pp. 13-60.

Bonferroni, C. E. (1936) Teoria statistica delle classi e calcolo delle probabilita. Pubblicazioni del R Istituto Superiore di Scienze Economiche e Commerciali di Firenze 8, 3-62, 1936.


mutoss documentation built on March 31, 2023, 8:46 p.m.