nispace.stats.misc.maxT_correction

nispace.stats.misc.maxT_correction(obs_stats, null_colocs, stat, tail='two', how='r', alpha=0.05, dtype=None)[source]

Max-T FWER correction (Westfall & Young 1993).

Parameters:
  • obs_stats (DataFrame or array, shape (n_Y, n_X)) –

  • null_colocs (list[n_perm] of {stat: (n_Y, n_X) array}) –

  • stat (key to extract from null_colocs dicts) –

  • tail ("two" | "upper" | "lower") –

  • how ("r" — per-Y row, max across X (default); "a" — global max across Y×X) –