isubirana / compareGroups

R package to easily build publication-ready univariate or bivariate descriptive tables from a data set.
https://isubirana.github.io/compareGroups/
33 stars 14 forks source link

Added function to adjust P-values for multiple comparisons #27

Closed jrealgatius closed 1 year ago

jrealgatius commented 1 year ago

Given a compareGroups object, returns their p-values adjusted using one of several methods (p.adjust {stats}).

The adjustment methods are imported from p.adjust {stats} and include the Bonferroni correction ("bonferroni") in which the p-values are multiplied by the number of comparisons. Less conservative corrections are also included by Holm ("holm"), Hochberg ("hochberg"), Hommel ("hommel"), Benjamini & Hochberg ("BH" or its alias "fdr"), and Benjamini & Yekutieli ("BY"), respectively. A pass-through option ("none") is also included.