Grouping variable in SEM PreviousNext
Mplus Discussion > Structural Equation Modeling >
 amal khanolkar posted on Friday, August 03, 2012 - 8:18 am

I've specified my grouping variable (for smoking) as a follows:

GROUPING IS smoke1 (0 = nonsmoker 1 = smoker);

- However, there are quite a few missing this data on this varaible coded as 9999.

I get the following error message: Can this be ignored or should I deal with it?

Note that there are observations with missing or unknown grouping values.
These cases were deleted. Check that you have specified the GROUPING
option correctly.

- I have specfied that

Thanks & regards,

 Linda K. Muthen posted on Friday, August 03, 2012 - 11:58 am
We can't assign people with missing values on the grouping variable to any group so they are not included in the analysis. I'm not sure how you can change that if you don't know which group they are in.
 Patricia Roberson posted on Tuesday, June 25, 2013 - 1:58 pm

I have reviewed other posts and still have a question about grouping variables and moderation.

I have run a multiple group model. one of the structural paths differed between the four groups as follows: group 1: (beta = .36, p less than .001), group 2 (beta = .40, p less than .001), group 3 (beta = .33, p less than .001), and group 4 (beta = .06, p = .12). Someone asked: "This shows which paths do remain significant and which do not. but it does not tell us whether the significant path DIFFERS from the nonsignificant does it?" I replied that this is correct and you could do a chi-difference test to determine statistical difference. With out this difference test, are the results of this analysis not showing moderation?

Thanks for you time!
 Bengt O. Muthen posted on Tuesday, June 25, 2013 - 6:07 pm
If group is the moderator, there is no moderation if the betas cannot be shown to be significantly different. At least some pairs of betas need to be significantly different.
 Lior Abramson posted on Wednesday, December 02, 2015 - 4:12 am
Is there a way in MPLUS to define a variable and group the data by that variable? As it is now I'm having difficulty because the grouping command must come before the define command.
Thank you
 Linda K. Muthen posted on Wednesday, December 02, 2015 - 6:47 am
You cannot create a grouping variable and use it in the same analysis. You can define it and save the data as a first step.
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