Anonymous posted on Sunday, November 20, 2005 - 7:28 am
I am trying to develop a study that uses latent classes with cross-sectional data. The issue that I have is that I want to export my data after the optimal number of classes have been found in the data. This will allow me to examine mean differences in specific variables.
For example, I want to examine the latent classes of scholastic aptitude. After finding the optimal number of classes in my sample, I want to know the mean differences in mean math scores. To understand the mean differences in math scores, I need to run MANOVA in a different program. However, I want Mplus to provide me with an indication of the individuals in each group so that I can use that in my MANOVA. How do I do this in Mplus? Is it a "savedata", "results", or "estimates" command? Better yet, can this be done? Thanks
You can save posterior probabilities by using the CPROBABILITIES option of the SAVEDATA command. Are you interested in looking at mean differences between variables other than those that you used in the latent class analsyis or the ones you used in the latent class analysis?
Anonymous posted on Sunday, November 20, 2005 - 1:46 pm
I'm trying to figure out which individual is in which group in the data. This way I can perform other analyses with the data. So, I am interested in variables that have not been used in the latent class analysis. Does Mplus put the cprobabilities with the individual observation?
Anonymous posted on Sunday, November 20, 2005 - 1:50 pm
With this problem, I'm trying to identify the individuals in the latent class count. How can identify these individuals in the dataset?
You can save the posterior probabilities using the CPROBABILITIES option of the SAVEDATA command. Note that the posterior probability for each individaul for each class will be saved as will the individual's most likely class membership.
Salma Ayis posted on Thursday, May 25, 2006 - 1:22 am
I am using Mplus to fit a Latent class model, by default I can get the CPROBABILITIES in the output saved file(SPSS), in fact I need to have my original data in addition to the results. For example if I used u1-u4 g; as my categorivcal indicators and my id I would like a complete data that have u1-u4 g & cprobabilities. This would save me from any chances of error in assigning d's to class membership. I tried to add these to SAVE dtat command but it didn't seem right!. Suggestions please! Thanks
Use the AUXILIARY option of the VARIABLE command to list variables not in the analysis that you want to save. Use the IDVARIABLE option of the VARIABLE command to identify the id variable. Use the CPROBABILITIES option of the SAVEDATA command to save posterior probabilities.
Dear All I fit my model using Factor Mixture Model (3 latent classes & 3 factors), and manage to get reasonable number of subjects within each class. However, I could able to get conditional probability and graphs information only for the first class. This is only happened when I use explanatory factor analysis (efa), but it is okay with confirmatory factor analysis (cfa). Here is the code I have used:-
IDVARIABLE IS id; Usevariables are Y1-Y16; classes=c(3);
ANALYSIS: TYPE = MIXTURE MISSING efa 1 3; ALGORITHM=INTEGRATION; ESTIMATOR=MLR; STARTS 365 10; STITERATIONS 10; STSEED 1234; PROCESS = 2(STARTS); Plot: type is plot3; series = Y1-Y16 (*);
Savedata: file is "C:\ latentClassAnalysis"
SAVE = CPROBABILITIES; format is free; output: tech1 tech8 tech11 tech14;
I would be very grateful if you could kindly help me with this issue! Thanks Michael