Message/Author 

Anonymous posted on Sunday, November 20, 2005  1:28 pm



I am trying to develop a study that uses latent classes with crosssectional 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  7: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  7: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  7: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 u1u4 g; as my categorivcal indicators and my id I would like a complete data that have u1u4 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 Y1Y16; 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 = Y1Y16 (*); 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 


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


I am trying to export data from a growth mixture model using the CPROBABILITIES option of the SAVEDATA command into a csv file but the file is saving all of the variables in the first cell of the csv file rather than each variable being exported into its own column. Is there a way to specify this command to receive the data in separate columns or in a comma delimited text file? Below is my current syntax. Savedata: save=cprob; file=cprob_binhvy_GMM_2class.csv; 


Don't use the csv extension. The file that is saved is an ASCII file. Use another extension, for example, txt. 

Jan posted on Sunday, May 17, 2015  3:37 pm



I wanted to save probabilities in a growth mixture model. IAD is the intercept factor and SAD is the slope factor. The following variables were extracted: IAD F10.3 SAD F10.3 C_IAD F10.3 C_SAD F10.3 CPROB1 F10.3 CPROB2 F10.3 CPROB3 F10.3 CPROB4 F10.3 C F10.3 I know that IAD and SAD are scores of the intercept and the slope factor, and CPROBC are probabilities and most likely membership. But could you tell me what the C_IAD and C_SAD are? 

Back to top 