Family-wise error and false-discovery-rate corrections for mass-univariate p-value maps. More...


Go to the source code of this file.
Classes | |
| class | STSLIB::StatsMcCorrection |
| Bonferroni, Holm-Bonferroni and Benjamini-Hochberg FDR adjustments for mass-univariate p-value maps. More... | |
Namespaces | |
| namespace | STSLIB |
| Statistical testing (t-tests, F-tests, cluster permutation, multiple comparison correction). | |
Family-wise error and false-discovery-rate corrections for mass-univariate p-value maps.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Provides the three multiple-comparison adjustments most commonly reported in M/EEG papers: classical Bonferroni ( \(p^* = \min(np, 1)\)), the Holm-Bonferroni step-down procedure that gives uniformly tighter family-wise error control than Bonferroni while remaining distribution-free, and the Benjamini-Hochberg FDR step-up procedure that controls the expected proportion of false discoveries rather than the probability of any.
All three routines operate on an Eigen matrix of raw p-values and return a matrix of the same shape with corrected p-values; the caller compares against the desired \(\alpha\) as usual. Cluster-based correction (the Maris-Oostenveld alternative to FDR for spatially structured data) lives in STSLIB::StatsCluster.
References: Holm (1979), Scandinavian Journal of Statistics 6(2); Benjamini & Hochberg (1995), JRSS-B 57(1).
Definition in file sts_correction.h.