GMM with binary covariate influencing... PreviousNext
Mplus Discussion > Latent Variable Mixture Modeling >
 jennifer hamilton posted on Saturday, November 29, 2008 - 12:36 pm
Hi, I have a very simple GMM, and I want to add in a binary covariate (gender). I want this covariate to influence the latent class assignment. I am having some problems, and I first want to double check to make sure that I am coding it correctly. Could you take a look at what I have below?

DATA: FILE = "C:\mixed.dat";

VARIABLE: NAMES ARE v1 v2 v3 v4 gender;
USEVARIABLES ARE v1 v2 v3 v4 gender;
CLASSES = c (2);


MODEL: %overall%
I by v1-v4@1;
S by v1@0 v2@1 v3@2 v4@3;
i WITH s@0;
i*5; s*1;
c#1 on strata;
[i*2.24]; [s*1];

[i*6.72]; [s*3];

OUTPUT: stand;
 Linda K. Muthen posted on Sunday, November 30, 2008 - 10:59 am
You would say

c ON gender;
 jennifer hamilton posted on Sunday, November 30, 2008 - 7:23 pm
Thanks for such a quick reply.

Unfortunately, when I tried the "c ON gender" option that you suggested, I got a series of error messages. The first was "Unknown variable: C". And "Variable is uncorrelated with all other variables within class: GENDER". Am I doing something wrong?
 Bengt O. Muthen posted on Monday, December 01, 2008 - 6:50 am
Can't tell without more information. Please send your input, output, data, and license number to
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