Message/Author 


Hi, 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? *** ERROR 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 MISSING ARE ALL (9999); Thanks & regards, /Amal. 


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. 


Hello, 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 chidifference test to determine statistical difference. With out this difference test, are the results of this analysis not showing moderation? Thanks for you time! 


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. 


Hello, 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 


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. 


I am struggling to make the GROUPING option work. Here is my syntax: GROUPING IS i_Mperstak_Above (0.000 = Below_Mean 1.000 = At_or_Above_Mean); This corresponds with the User Guide, and I know that there are no missing data on i_Mperstak_Above, i.e., everyone is either 1.000 or 0.000. I created that variable in SPSS prior to bringing the data into MPlus. The output I receive is below. Note: The model runs fine when I remove my GROUPING syntax: *** ERROR The number of observations is 0. Check your data and format statement. Data file: c:\users\grant\box sync\michigan\dissertation files\data\grant jackson\data\all igd st *** ERROR Note that there are observations with missing or unknown grouping values. These cases were deleted. Check that you have specified the GROUPING option correctly. My ultimate goal is to compare how my structural equation model fits the data for these two groups using a Wald test. Thanks in advance for your help! 


Please send the output, data set, and your license number to support@statmodel.com. 


I am having a similar problem as above, after using my code multiple times "GROUPING IS change (0 = nonchanger 1 = changer);" I now get the following error: *** ERROR Group NONCHANGER has 0 observations. *** WARNING Data set contains unknown or missing values for GROUPING, PATTERN, COHORT, CLUSTER and/or STRATIFICATION variables. Number of cases with unknown or missing values: 107 This is incorrect and I have checked my data and code multiple times. There is no missingness on this grouping variable. Thank you in advance for your help! 


That sounds like you are not reading your data correctly. E.g. check that the number of columns in your data is the same as the number in the NAMES= list. If this doesn't help, send your full output and data to Support along with your license number. 

Back to top 