bonferroni_holm

Version 4.0 (2.3 KB) by E Zakreski
Bonferroni-Holm method to control family wise error rate. Corrects multiple comparisons/hypothesis tests (returns adjusted p-values)
368 Downloads
Updated 2 Aug 2019

View License

Bonferroni-Holm (aka Holm-Bonferroni) determines whether a series of hypotheses are still significant controlling for family wise error rate (FWE) and subsequently controls for false discovery rate (FDR) The Bonferroni-Holm method corrects for multiple comparisons (hypothesis tests). It less conservative than the Bonferroni correction, but more powerful (so p-values are more likely to stay significant). This function accepts raw p values from 1 or more hypotheses and outputs the FWE-adjusted p-values, and a logical array indicating which p-values are still significant at alpha = 0.05 or other alpha, after correcting for FWE. See function code for instructions.

Cite As

E Zakreski (2026). bonferroni_holm (https://nl.mathworks.com/matlabcentral/fileexchange/69817-bonferroni_holm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
4.0

Changed so that adjusted p-values > 1 are set to 1.

3.0

fixed bug

2.0

fixed bug in adjusted p values

1.0.0