Is there a way to use mne.stats.linear_regression on epoch data or stc
data with *binary/categorical* predictors?
In the MEG data I'm analyzing, the regressor I would like to use is a
categorical variable with 4 different categories of objects indicating
which type of object participants saw in each trial.
I've tried to create the design_matrix with a column of intercept + 4
column of dummy variables for each category. But it didn't work. Following
is the error messages I got: