Skip to content

pvalues returned by the `get_sig_clusters` incorrect

get_sig_clusters method of the MNEClusterPermutation class seems incorrect?

pvalues returned by pval = stats.percentileofscore(self.nulls, cstats[idx]) is a percentile, and it overlooks negative clusters as the null distribution self.nulls has positive values.

I think the correct way to compute pvalues would be pval = 1 - stats.percentileofscore(self.nulls, np.abs(cstats[idx]))/100.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information