Utkun Ozdil posted on Thursday, February 03, 2011 - 11:27 am
Hi, My question is about the coding of categorical covariates in the data file of Mplus. In my model I want to test the effect of gender, socioeconomic status, school type on mathematics achievement. Socioeconomic status has 4 scales and school type has 3 scales. Do you suggest dummy coding for these variables? For instance, should I create 3 dummies for SES and 2 dummies for school type,, and then include these dummy variables in the MODEL part or should I leave them as they are in the data file (without creating any dummies)?
I also hesitated in that whether a multigroup analysis would be more appropriate.
Covariates must be binary or continuous. If you do not recode nominal variables to s set of dummy variables, they will be treated as continuous in model estimation. With ordinal variables, you can create a set of dummy variables or treat them as continuous.
Is there an efficient way to create the dummy variables in MPLUS? I have 55 groups in a nominal variable that I need to dummy code. I know this can be done using the DEFINE command, but will I need to manually list out all 55 dummy variables?
Hi, I am using a latent growth curve modeling approach. How might I use these techniques for this statistical approach? I have been watching your short course topic 3 and following along in the slides, but not sure how to bring in such a large number of groups.
I had a chance to look at the 2016 paper on multiple groups. I also tried to run the analyses. It seems the Alignment method will not work with latent growth curve analyses because MPLUS wants me to free all the loadings. But arn't fixed loadings required to run that analysis correctly? I tried to run the two-level analysis as well, but do not have that version of MPLUS. I think I finally figured out how to run my data (expect for the groups part) using non-linear analyses (short course 3 was helpful!), but feeling very stuck on trying to analyze with so many groups.
I misspoke - the loadings and intercepts of the factor indicators need to be free in the alignment procedure. The growth model with its typically fixed loadings (fixed time scores) assumes measurement invariance in that the time scores are thought to be the same for all groups for the same linear/quadratic etc development. So capture the 55 groups by either using either a large set of dummy covariates or a multiple-group run. In the latter, you can test if the fixed time scores need to be relaxed in some groups due to deviations from the overall linear/quadratic etc growth. Modindices are useful here.