Hi, I am running 3dLMEr to get an order effect. I am interested in finding out if the 'order' by which the subjects did the study had an effect on the results. I have two groups (ON medications and OFF medication)
First I used 3dcalc to get the falff difference for each subject; I get ## subjects that started with OFF first and ## subjects that started with ON first. I included the difference falff files in the InputFile
This is my model:
3dLMEr -prefix LMEr_fALFF.OrderEffect.nii.gz -jobs 12 \
-model "group*order+(1|Subj)" \
-qVars 'order' \
-mask B-Str2Resampled.nii \
-gltCode OFF 'group : 1*OFF' \
-gltCode ON 'group : 1*ON' \
-gltCode groupOFFvsON 'group : 1*OFF - 1*ON' \
-gltCode order 'order : 1*1' \
-gltCode groupvsorder0 'group : 1*OFF -1*ON order : 0' \
-gltCode groupvsorder1 'group : 1*OFF -1*ON order : 1' \
-dataTable \
Subj group order InputFile \
s1 OFF 0 diff.s1.falff.off1st.nii \
s2 OFF 0 diff.s2.falff.off1st.nii \
s3 OFF 0 diff.s3.falff.off1st.nii \
s4 ON 1 diff.s4.falff.on1st.nii \
s5 ON 1 diff.s5.falff.on1st.nii \
s6 ON 1 diff.s6.falff.on1st.nii
This is my error message:
-dataTable Subj group order InputFile
[INFO] Please allocate lscratch for batch/sinteractive R jobs
Error in seq.default(wd + i, len, wd) : wrong sign in 'by' argument
Calls: read.LME.opts.batch ... dtCheck_str2frame -> data.frame -> cbind -> seq -> seq.default
Execution halted
Thank you!
jasmin