tfrStats.stats_tfrs_avg module

tfrStats.stats_tfrs_avg.stats_tfrs_avg(tfr_null, tfr_emp, correction)[source]

Compute p-values obtained from 2-fold permutation RSA tests

This functions computes p-values obtained from TFR-RSA.

Todo

  • Adapt the function to work with 3D arrays (i.e. 2D space-time-frequency maps).

  • Add the possibility to use a different distance metric.

  • Add the possibility to use a different cluster correction method.

Parameters:
  • stat (float) – un-corrected p-values for each frequency (and/or time) bin.

  • alpha (float) – statistical threshold (e.g. 0.05).

Returns:

corrected p-values for each frequency-time or space-time bin.

Return type:

float

@author: Nicolas Gravel, 19.09.2023