OK, you managed to fix the data.table issue!
Is this your 3dLME script?
3dLME -prefix 3dLME_v1 \
-model "reward*punishment*grade" \
-resid grade_resids \
-ranEff '~1+grade_c' \
-SS_type 3 \
-qVars "grade_c" \
-qVarsCenters "0,0" \
-mask \
-num_glf 1 \
-glfLabel 1 'Ant_grade' -glfCode 1 'Ant : 1*rew & 1*pun grade_c :' \
-dataTable \
Subj Ant grade_c age wave Inputfile \
There are at least three issues:
** Where are the three variables reward, punishment and grade in the table?
** The variable "grade_c" is declared as a quantitative variables, but why are two center values provided through -qVarsCenters "0,0"?
** In the coding -glfCode 1 'Ant : 1*rew & 1*pun grade_c :', the variable "rew" is not a column in the table, and all the three variables are not in the model formulation either.
Gang