Skip to content
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

swe_DesRep problem #194

Open
martahedl opened this issue May 5, 2022 · 1 comment
Open

swe_DesRep problem #194

martahedl opened this issue May 5, 2022 · 1 comment

Comments

@martahedl
Copy link

Hi!

I'm relatively new to SwE, but I would like to use it for my current project which is a longitudinal rs-fMRI analysis with a lot of missing data. The sandwich estimator seems like it can handle such data.

I have two groups (patients and controls). Each subject has either one or more visits (up to 5). There are 305 unique subjects and 497 inputs in total.

I've now tried to specify that model in the batch editor. I provided my 497 input files (functional connectivity maps from rs-fMRI, 3D Nifti), and additionally specified the group, visit and subject vectors as described in the documentation. I did not change any of the other default settings.

When I try to run and specify the model, it stops after just a few seconds on the error message which I'm providing below. Somehow the design matrix seems to be missing, but I don't know why SwE has problems setting that up.. What am I missing? Any help / thoughts would be much appreciated!

Thanks in advance,
Marlene


04-May-2022 10:14:15 - Running job #1

04-May-2022 10:14:16 - Running 'Specify Model'
Mapping files : ...done
Design configuration : ...done
Saving SwE configuration : ...SwE.mat saved
Design reporting : 04-May-2022 10:14:18 - Failed 'Specify Model'
Error using swe_DesRep (line 675)
Can't find DesMtx in this structure!
In file "/Users/Marlene/Documents/MATLAB/spm12/toolbox/SwE-toolbox-2.2.2/swe_DesRep.m" (???), function "swe_DesRep" at line 675.
In file "/Users/Marlene/Documents/MATLAB/spm12/toolbox/SwE-toolbox-2.2.2/swe_run_smodel.m" (???), function "swe_run_smodel" at line 915.

The following modules did not run:
Failed: Specify Model

@hsx1
Copy link

hsx1 commented May 7, 2022

Hi, at first sight, it looks like you forgot to add covariates, maybe? Group, visit and subject vectors alone don't suffice. You need to create at least an intercept covariate. Either you create each one of your regressors separately under "Covariates" or you input the design matrix under "Multiple Covariates".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants