Learn R Programming

mutoss (version 0.1-13)

bonferroni: Bonferroni correction...

Description

Bonferroni correction

Usage

bonferroni(pValues, alpha, silent=FALSE)

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.

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.

Author

MuToss-Coding Team

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.

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.