I’m trying to calculate a simple first level analysis using nistats. However, for some of our subjects, not all runs have the same number of different
trial_types (e.g. for run 1 there might be
condition_2, while for run 2 there is
condition_3). While fitting the model works fine, computing the contrasts doesn’t:
ValueError: t contrasts should be length P=37, but this is length 38
I’m quite a newbie so I’d like to apologize if my two questions seem stupid:
I was under the impression that nistats fits the model for all provides runs simultaneously - so wouldn’t be missing regressors for parts of the model problematic? Why does fitting even work?
What is the recommended way of dealing with this?