I am having trouble with LCA models with binary variables when there are missing observations. If I drop all cases with missing observations before converting to an mplus dataset (from Stata) everything works fine. But, if I leave in cases with missing observations, Mplus seems to think that my binary variables have three categories. It is treating the missings as actual values.
In the file that reads the data into mplus, it seems that Mplus understands that they are missing because it computes the right means for all the variables, but then in the LCA models something goes wrong. And when I look at the saved raw data it changes all the binary 0/1 variables to three-category 0,1,2 variables with 0s being those that are missing. I have tried changing missings to periods (.) in the LCA input file, but the same thing happens.
however, if I change missings to periods in the original file that reads the data into Mplus, then all the means of the variables are completely wrong.
It sounds like you have blanks in your data set for missing values and that you are reading the data with free format. Blanks are not allowed with free format. If this does not help, please send the input, data, output, and your license number to firstname.lastname@example.org.
Hello, I am running some LCA and LTA model with covariates. Some covariates have missing data. What could I do with that? Does anyone know references about how to deal with that using mplus (e.g. examples, syntax)?
You can bring all of the covariates into the model by mentioning their means, variances, or covariances in the MODEL command. When you do this, you make distributional assumptions about them and they are treated as dependent variables. You could also use multiple imputation.