Growth modeling with binary PreviousNext
Mplus Discussion > Categorical Data Modeling >
 Soyoung Kwon posted on Saturday, January 07, 2012 - 5:50 am
I am performing LGM with binary variable(obesity)in long format. My baseline model including age, cohort,femal, education. While the baseline model runs very well, I have not been succesful to run model when adding any other variables(i.e., marital status, employment status etc).

usevariables are female urban marital newid cage chrt edu2 edu3 edu4 agesq agechrt overwght;
categorical are overwght;
within= marital cage edu2 edu3 edu4 agesq agechrt;
between= female urban chrt;
Type = twolevel random;
estimator=ml; !default is mlr
overwght on marital edu2 edu3 edu4 agesq agechrt ;
s | overwght on cage;
overwght on female urban chrt;
overwght with s;

*** ERROR in VARIABLE command
On the USEVARIABLES list, variables from the NAMES list must come before
all new variables created using the DEFINE command. The variables(s)
violating this order are: ARE

However I put the use variables in the same order as in the variable list.

When I run the same model with BMI as continuous D.V, I got the following message.

*** ERROR in VARIABLE command
TYPE = TWOLEVEL analysis requires option CLUSTER.

However I included cluster=newid;
 Bengt O. Muthen posted on Saturday, January 07, 2012 - 6:32 am
We need to see the full output from those two runs to be able to advice you - please send them to
 Soyoung Kwon posted on Saturday, January 07, 2012 - 11:35 am
I have just sent it. I really appreciate it.
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message