Asks for DEFINE statement for existin... PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 Gretchen Petery posted on Friday, August 07, 2015 - 9:15 am
I'm am trying to rerun an analysis and have added 3 new variables to my dataset. Since I am rerunning an analysis I already ran,I simply added the new variable names to my "VARIABES: NAMES ARE" command (T1phZFHrz, T2phZFHrz, and T3phFHrz) and updated the "USEVARIABLES" command to include the new variables:

VARIABLE: NAMES ARE ID Gender T1PAprop T2PAprop T3PAprop T1GHrz T2GHrz
T3GHrz T1MCSrz T2MCSrz T3MCSrz T1ZPHrz T2ZPHrz T3ZPHrz
T1ZFHrz T2ZFHrz T3ZFHrz CAcat1 CAcat2 CAcat4 T1phZFHr T2phZFHr T3phZFHr;
USEV = T1PAprop T2PAprop T3PAprop T1phZFHrz T2phZFHrz T3phZFHrz;
GROUPING IS CAcat4 (0=Young 1=Old);




However, when I try to run the analysis I get the following error messages:


*** ERROR in DEFINE command
A new variable included on the USEVARIABLES list was not defined.
Check your DEFINE statements. Undefined variable: T1PHZFHRZ
*** ERROR in DEFINE command
A new variable included on the USEVARIABLES list was not defined.
Check your DEFINE statements. Undefined variable: T2PHZFHRZ
*** ERROR in DEFINE command
A new variable included on the USEVARIABLES list was not defined.
Check your DEFINE statements. Undefined variable: T3PHZFHRZ


I am not asking Mplus to create the new variable. I have already created the variable. Any idea what to do?
 Gretchen Petery posted on Friday, August 07, 2015 - 9:34 am
Never mind. I just realized the error. I had an extra letter in the variable name in the USEV command. I don't know whether I feel dumb or smart now! :/
 Bengt O. Muthen posted on Friday, August 07, 2015 - 4:57 pm
Good.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: