- MNE-Python version: 0.21.2
- operating system: macOS 11.1
I am working on regressed ERPs. As far as I can understand, the functions linear_regression_raw
(for raw data) and linear_regression
(for epoched data) calculate regressed ERPs against a given set of regressors and store coefficients (betas, tβs and pβs) for each predictor in a complex, dictionary-like object. For example, the dictionary lm
has the predictor s_freq
as key and a series of Evoked
objects as values:
lm = {'s_freq': lm(beta=<Evoked | '' (average, N=1), [-0.1, 0.8] sec, 32 ch, ~144 kB>, stderr=<Evoked | '' (average, N=1), [-0.1, 0.8] sec, 32 ch, ~144 kB>, t_val=<Evoked | '' (average, N=1), [-0.1, 0.8] sec, 32 ch, ~144 kB>, p_val=<Evoked | '' (average, N=1), [-0.1, 0.8] sec, 32 ch, ~144 kB>, mlog10_p_val=<Evoked | '' (average, N=1), [-0.1, 0.8] sec, 32 ch, ~144 kB>)}
I am trying to understand what is the best way to store the data for each regressor, coefficient participant, channel, and time, so to calculate grand averages for each regressor and coefficient. What I have trouble with is the inner structure of the lm
object above (i.e., the structure within a given key of the dictionary). Would anyone be able to help?
Thanks!