Testing Model Fit in Second-Level rs-fmri analyses

Hello :slight_smile:

I am analysing some resting-state data that was inputted into fmriprep and xcp-d for pre and post-processing, and now I am running second-level analyses using conn /spm.

My modelling is running fine, but I am wanting to confirm the “best” covariates to include in the model. I found an spm toolbox extension called MACS - however this doesnt run for second-level analyses.

Does anyone have any idea how to utilise the SPM.mat derived from conn_module to calculate goodness of fit? I want to compare a few models :slight_smile:

This is my script for conn:

conn_module(‘GLM’, …
‘design_matrix’, X, …
‘data’, {‘n44ses01_threedim_zscore_connmat.mat.nii’}, …
‘contrast_between’,[1 -1 0 0 0 0 0 0 0]); %ptsd+ and ptsd-

Thanks