

Latent class as a predictor variable 

Message/Author 

Sarah Lowe posted on Wednesday, September 04, 2013  3:50 pm



Hi! I'm running Mplus 7.1, and am trying to use a latent class as a predictor of a DV, controlling for other IVs  is this possible? [I read the Mplus Web Note 15 (Asparouhov & Muthén, 2013), and was able to run the threestep approach. However, I don't think this gets at what I'm interested in, right?] Thanks! Sarah 


Yes, this is possible. You don't say y ON c x; for a distal DV y, a latent class variable c, and covariates x. Instead, you say: y ON x; and the classvarying intercepts of y will show how c influences y while controlling for x. 


Hi there, I am wondering about your recommended procedure for looking at a latent class model in tandem with a mediation model. In particular, I am interested in using a latent class variable as an IV in the mediation model. I recognize that including the mediating variable and outcome variable as indicators of the latent class membership would be similar to modeling the regression pathways of the mediator and outcome on the latent class (i.e., 'x ON c'), and would be able to include a regression of the outcome on the meditator (as per Example 7.20 in the User’s Guide). This would then suggest, at least to me (but I could be very wrong!), that the pathways required to examine a mediation model would be present. Further, as per Example 7.20 of the user's guide, this regression pathway between the mediator and outcome would vary across classes, and would thus suggest a moderating effect. I am hoping you might be able to advise about how to go about testing for a mediating effect (either across classes or within classes). Any recommendations or references you may be able to provide me with would be greatly appreciated. Thanks in advance, and Happy Thanksgiving! 


It makes sense to have a latent class variable as the X variable in an X, M, Y mediation model. Take the example of a binary latent class variable, which is then like a binary X. Your model specifies Y ON M. The effect of X on M is the difference in means of M over the two classes (that's what a slope of M regressed on a binary X gives). So you get an indirect effect as the product of the Y ON M slope and that difference. You can express that via Model Constraint. The direct effect of X on Y is a mean difference in Y for the two classes. I know of no references for such an analysis. 


Thank you for the prompt, and insightful response. However, what M and Y differences would one focus on with 4 latent classes? In this case there would be six mean differences for both M and Y. Further, because the Y ON M slope may differ across classes, one could calculate 12 indirect effect values. This is a mockup of my MODEL command and my MODEL CONSTRAINTS. Would you be able to advise as to which of the M and Y differences, and indirect effects might be of most interest? %C#1% [Class1 Class2 Class3]; [Mediate1] (M1); [Outcome1] (O1); Outcome1 ON Mediate1 (Bpath1); Classspecific means and regression pathways for Classes 2 and 3 omitted for space %C#4% [Class1 Class2 Class3]; [Mediate1] (M4); [Outcome1] (O4); Outcome1 ON Mediate1 (Bpath4); MODEL CONSTRAINT: NEW(M1_2 M1_3 M1_4 M2_3 M2_4 M3_4 O1_2 O1_3 O1_4 O2_3 O2_4 O3_4 Ind1_2a Ind1_3a Ind1_4a Ind2_3a Ind2_4a Ind3_4a Ind1_2b Ind1_3b Ind1_4b Ind2_3b Ind2_4b Ind3_4b); M1_2 = M1M2; M1_3 = M1M3; ... M3_4 = M3M4; O1_2 = O1O2; O1_3 = O1O3; ... O3_4 = O3O4; Ind1_2a = M1_2*Bpath1; Ind1_2b = M1_2*Bpath2; ... Ind3_4a = M3_4*Bpath3; Ind3_4b = M3_4*Bpath4; 


I would pick a reference category for your 4class IV and compare to that, so with e.g. 4th class being the reference, you would look at m1m4, m2m4, m3m4, and similar for the O's. Your setup is otherwise what I had in mind. 

Back to top 

