cvnlab / GLMsingle

A toolbox for accurate single-trial estimates in fMRI time-series data
BSD 3-Clause "New" or "Revised" License
98 stars 42 forks source link

Residuals for Type B models #82

Open andreifoldes opened 1 year ago

andreifoldes commented 1 year ago

Greetings,

I think it would be useful to output the residuals for the Type B models. The residuals are necessary for estimating smoothness when doing cluster correction using e.g.: 3dFWHMx/3dClustsim.

kendrickkay commented 1 year ago

I assume you mean, the "fit hrf" model (with tailored HRF) which also includes the drift terms (but does not do the glmdenoise regressors + ridge regression components (for the type-C and type-D models)).

This may be tricky to implement given the code architecture, but we will see.