Naveed,
There are a couple of issues with your 3dMVM command lines:
1) I believe that 'sex' should be a between-subjects (not within-subject) factor. So remove
-wsVars sex \
and set
-bsVars "diag+sex+age+IQ" \
If you want to model some interactions, use '*' instead of '+'. For example, "diag*sex" would give you both main effects of diag and sex and their interaction.
2) You need to declare that age and IQ are quantitative variables:
-qVars 'age,IQ' \
You may want to pay attention to the centering issue with option -qVarCenters:
[
afni.nimh.nih.gov]
3) You don't really need 40 CPUs. 8 or 12 would be probably good enough.
Gang