mnefun.anova_time

mnefun.anova_time(X, transform=True, signed_p=True, gg=True)

A mass-univariate two-way ANOVA (with time as a co-variate)

Parameters:
Xarray

X should have the following dimensions:

(n_subjects, 2 * n_time, n_src)

or:

(n_subjects, 2, n_time, n_src)

This then calculates the paired t-values at each spatial location using time as a co-variate.

transformbool

If True, transform using the square root.

signed_pbool

If True, change the p-value sign to match that of the t-statistic.

ggbool

If True, correct DOF.

Returns:
tarray

t-values from the contrast, has the same length as the number of spatial locations.

parray

Corresponding p values of the contrast.

dofint

Degrees of freedom, with conservative Greenhouse-Geisser correction based on the number of time points (n_time - 1).