-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle cases where a contrast is missing from the first level #380
Comments
Is this what Also, maybe |
Yes, we need to handle the new shape correctly. Could make it contingent on
I would worry that this would make us silently ignore errors in the model spec. |
I'm still not 100% when --drop-missing works and when it doesn't, bc it always seems to work for me. For example, if one subject is missing a predictor in run 1 but not runs 2-3, it seems to handle the new shape fine. I think that's a valid worry. Maybe for now we could make it contingent on |
When I did call this job, I did include |
Environment
Expected Behavior
My understanding of the situation: @sjshim has a dataset with a
demeaned_RT
regressor, but this is only notnan
if the subject responds at least once during a run. In case of a run where no actions had, this regressor will be missing from the design matrix, and the contrast will be missing from the L1 model outputs.When passed to the L2 model, it might expect 5 input stat maps, but only get 4. We should detect this case and remove rows from the design matrix when an expected statistical map is missing.
The text was updated successfully, but these errors were encountered: