Description Usage Arguments Details Value Author(s) References
View source: R/wrapperFunctions.R
Bonferroni correction
1 | bonferroni(pValues, alpha, silent=FALSE)
|
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 |
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.
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 |
MuToss-Coding Team
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.