Using fmri_glm.fit
and fmri_glm.design_matrices_
is there some way to specify the order that events appear in the design matrix? I see that it currently defaults to alphabetical order (with capitalized variable names coming first) but I prefer to have the order in the design matrix reflect the order in the events.tsv file. Is this possible without constructing my own design matrix from scratch?
Hi,
I believe the nilearn output design matrices are just pandas dataframe, so you should be able to reorder columns using something like described here.
Best,
Steven
1 Like