v2.0.0
Loading...
Searching...
No Matches
sts_correction.h File Reference

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

#include "sts_global.h"
#include <Eigen/Core>
Include dependency graph for sts_correction.h:
This graph shows which files directly or indirectly include this file:

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).

Detailed Description

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

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.0
Date
April 2026

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.