AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
May 03, 2019 01:20PM
Thanks for any help.

When I use the command tcsh -x PreMVM.txt & I receive the following error message:

“~~~~~~~~~~~~~~~~~~~ Model test failed! ~~~~~~~~~~~~~~~~~~~
Possible reasons:

0) Make sure that R packages afex and phia have been installed. See the 3dMVM
help documentation for more details.

1) Inappropriate model specification with options -bsVars, -wsVars, or -qVars.
Note that within-subject or repeated-measures variables have to be declared
with -wsVars.

2) Incorrect specifications in general linear test coding with -gltCode.

3) Mistakes in data table. Check the data structure shown above, and verify
whether there are any inconsistencies.

4) Inconsistent variable names which are case sensitive. For example, factor
named Group in model specification and then listed as group in the table header
would cause grief for 3dMVM.

5) Not enough number of subjects. This may happen when there are two or more
withi-subject factors. For example, a model with two within-subject factors with
m and n levels respectively requires more than (m-1)*(n-1) subjects to be able to
model the two-way interaction with the multivariate approach.


** Error:
Quitting due to model test failure...”


The input files are read in correctly. Here is part of my MVM file:

#!/bin/tcsh
3dMVM -mask clippedfullmask.nii -prefix PreGroupPrecision1 -jobs 4 \
-model 1 \
-wsVars "oxy*blank*change" \
-num_glt 3 \
-gltLabel 1 oxyEff -gltCode 1 'oxy : 1*HbO -1*HbR' \
-gltLabel 2 blankEff -gltCode 2 'blank : 1*blank -1*noblank' \
-gltLabel 3 changeEff -gltCode 3 'change : 1*change -1*nochange' \
-dataTable \
Subj oxy blank change InputFile \
S1004 HbO noblank nochange /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond1_unmaskedOxy.nii \
S1004 HbR noblank nochange /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond1_unmaskedDeoxy.nii \
S1004 HbO noblank change /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond3_unmaskedOxy.nii \
S1004 HbR noblank change /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond3_unmaskedDeoxy.nii \
S1004 HbO blank nochange /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond5_unmaskedOxy.nii \
S1004 HbR blank nochange /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond5_unmaskedDeoxy.nii \
S1004 HbO blank change /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond7_unmaskedOxy.nii \
S1004 HbR blank change /home/abclab/Desktop/Precision1/S1004/viewer/Subject/1004_cond7_unmaskedDeoxy.nii \


I have 27 participants, and this is a 2x2x2 within-subjects design. The R packages afex and phia have been installed and there doesn’t seem to be any inconsistencies in the data table. I have also fixed bad characters in the MVM file.

Thanks,
Kaleb
Subject Author Posted

Model test failed

kkinder5 May 03, 2019 01:20PM

Re: Model test failed

gang May 03, 2019 02:04PM