Two-level SEM ERROR message PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 Rebecca Piccolo posted on Thursday, January 02, 2014 - 5:33 pm
Hello, I am trying to model an effect where black and hispanic (indicators for race - indiv. level) affect where you live (risk3_2 - neighborhood poverty - level 2) affect diabetes status (diab - level 1). From boards and the examples it appears I should do the following:

analysis: type=twolevel random complex;
model: %within%
s | diab on black hispanic;

s diab ON risk3_2 black hispanic;

But I am getting the following error:
*** ERROR in MODEL command
Unrestricted x-variables for analysis with TYPE=TWOLEVEL and ALGORITHM=INTEGRATION
must be specified as either a WITHIN or BETWEEN variable. The following variable
cannot exist on both levels: BLACK

Can you help me with what I am doing wrong?
 Linda K. Muthen posted on Friday, January 03, 2014 - 9:15 am
You need to put black and hispanic on the WITHIN list and create between-level variables for black and hispanic using the CLUSTER_MEAN option of the DEFINE command. Latent variable decomposition of black and hispanic is not available for your model.
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