Run model error

55 views
Skip to first unread message

Eleni Panagoulas

unread,
Feb 20, 2022, 8:59:59 AM2/20/22
to SwE-Toolbox Support
Dear Dr Nichols,

I am carrying out a longitudinal analysis with stroke patients that were followed up at 5 time points within a roughly 6 month period. I have two groups of patients (those that developed pain and those that did not). I am interested in looking at structural changes over time. However, some follow-up scans are missing so not everyone has the same number of scans.

I chose SwE type modified:

Groups: 111110000 ect

Visits : 1412315 ect

subjects: 1122233 ect  (as in the subj_vis_gr.txt file)

and added the matrix_swe.mat file under multiple covariates
I get the design matrix attached above. However, when I try to run the model I get the following error:
------------------------------------------------------------------------
20-Feb-2022 14:31:59 - Running job #1
------------------------------------------------------------------------
20-Feb-2022 14:31:59 - Running 'Run Model'
Initialising parameters                 :                   ...computing20-Feb-2022 14:31:59 - Failed  'Run Model'
The logical indices in position 1 contain a true value outside of the array bounds.
In file "/data/pt_02333/SOSENS/programs/spm12/toolbox/SwE-toolbox-2.2.2/swe_cp.m" (???), function "swe_cp" at line 214.
In file "/data/pt_02333/SOSENS/programs/spm12/toolbox/SwE-toolbox-2.2.2/swe_run_rmodel.m" (???), function "swe_run_rmodel" at line 34.

The following modules did not run:
Failed: Run Model

I am not sure exactly why this error is occurring, is it because within the two groups the number of visits are not the same?
I would really appreciate your help.

Best wishes
Eleni
design_matrix.fig
matrix_swe.mat
subj_vis_gr.txt
Reply all
Reply to author
Forward
0 new messages