statcond#

statcond(data, *, paired='auto', method='param', mode=None, naccu=200, variance='homogenous', forceanova=False, tail='both', axis=-1, rng=None, alpha=None, surrog=None, stats=None, return_resampling_array=False)#

Compare condition arrays using EEGLAB-style t-tests or ANOVAs.

Parameters:
  • data (Any) – One- or two-dimensional sequence of condition arrays. The case dimension is the last axis by default.

  • paired (str | bool) – "auto", "on"/True, or "off"/False.

  • method (str) – "param", "perm", or "bootstrap".

  • mode (str | None) – Legacy alias for method.

  • naccu (int) – Number of surrogate samples for nonparametric methods.

  • variance (str) – "homogenous" or "inhomogenous" for unpaired t-tests.

  • forceanova (bool) – Use one-way ANOVA instead of a two-condition t-test.

  • tail (str) – Empirical-tail mode for supplied or computed surrogates.

  • axis (int) – Axis in each condition array that stores cases.

  • rng (Generator | int | None) – Optional NumPy generator or seed for deterministic resampling.

  • alpha (float | None) – Optional threshold for confidence intervals and masks; requires a nonparametric method or supplied surrogate statistics.

  • surrog (Any) – Precomputed surrogate statistic array.

  • stats (Any) – Observed statistic to pair with surrog.

  • return_resampling_array (bool) – Return surrogate condition grids instead of computing statistics.

Return type:

StatcondResult | SurrogateDistribution