Message/Author 


Hello I am about to start an LPA analysis and have a categorical distal outcome that I would like to relate the classes to as well as other covariates that I would like use to predict class membership. I have read the article from 2014 on auxiliary variables in 3 step approaches, but it is not clear to me if it is possible to do this all together, particularly including the other covariates as predictors of class membership. Can you please clarify? thank you 


You would need to use manual 3step for this. See Web Note 21, Section 3.2. 


Thank you. I am familiar with BCH and had planned on using it, however I was confused by table 6 of webnote 21 that recommends BCH for continuous and DCAT for categorical. Are you suggesting that I try BCH even though my distal outcome is categorical? 


I would use the recommendations in Web Note 21. 


Hello again, I have run the LPA (with 3 classes) as mentioned above to a categorical distal outcome and in the output for one of the classes I am getting an OR of 1 with a 95 % CI of (1.0, 1.0). The other 2 classes are fine. Do you know why this may be the case? thank you 


See the FAQ onour website: Odds ratio interpretation for categorical distal outcomes using DCAT 


Thank you that was very helpful. In this particular case, my last class is the one whose OR I am most interested in. Is there a way to change the order of how the classes fall out? I have read about using DEFINE but I am not sure if that could work. 


You use starting values to change classes around. Request SVALUES in the output from your original run and use them in a second run where you switch them for the classes so you get the last class you want. 

lisa Car posted on Thursday, November 17, 2016  10:45 am



Seeing as the recommended model for binary outcomes cannot accommodate covariates, I am wondering what your opinion is on using logistic regression after the fact as an option to explore them? 


You can use the manual 3step approach described in our papers. 

lisa Car posted on Friday, November 18, 2016  10:19 am



Hi again, I have tried using the manual 3step as suggested and when I get to the final step I cannot get the model to converge. My model has 3 classes, a number of covariates and 2 binary distal outcomes. The following error message appears. THE ESTIMATED COVARIANCE MATRIX FOR THE Y VARIABLES IN CLASS 1 COULD NOT BE INVERTED. PROBLEM INVOLVING VARIABLE INCIDCFK. COMPUTATION COULD NOT BE COMPLETED IN ITERATION 3. CHANGE YOUR MODEL AND/OR STARTING VALUES. THIS MAY BE DUE TO A ZERO ESTIMATED VARIANCE, THAT IS, NO WITHINCLASS VARIATION FOR THE VARIABLE. I have tried increasing STARTS up to 800 100 with no avail. thank you 


Send output to Support along with your license number. 

lisa Car posted on Monday, November 21, 2016  1:37 pm



So the model works with a continuous distal outcome but not a categorical one however I am getting class shifting. Does something special need to be done for a categorical distal outcome in the manual 3 sep approach? 


No. 

DavidBoyda posted on Monday, April 16, 2018  9:41 pm



Dear support, If I have categorical variables, and temporal order is not an issue, can i use DCAT instead of r3step to predict class membership instead of using it for distals? (e.g N > dummy coded age categories) 


I don't see how that would work. 


I have a 10class LCA model with two binary distal outcomes. I'm using the Auxiliary with DCAT, but getting the following error message: THE ESTIMATED COVARIANCE MATRIX FOR THE Y VARIABLES IN CLASS 1 COULD NOT BE INVERTED. PROBLEM INVOLVING VARIABLE NICU. COMPUTATION COULD NOT BE COMPLETED IN ITERATION 12. CHANGE YOUR MODEL AND/OR STARTING VALUES. THIS MAY BE DUE TO A ZERO ESTIMATED VARIANCE, THAT IS, NO WITHINCLASS VARIATION FOR THE VARIABLE. THE MODEL ESTIMATION DID NOT TERMINATE NORMALLY. ESTIMATES CANNOT BE TRUSTED. What does this mean? There are certainly several class indicator variables for which there is only a single value in a given latent class. Is this causing my problem and what can i do about it? 


Please send your Step 1 LPA that shows this message  data and output  to Support along with your license number. 


I see your note above regarding start values: "You use starting values to change classes around. Request SVALUES in the output from your original run and use them in a second run where you switch them for the classes so you get the last class you want." Where can I find example code to show me how to do this? Thanks 


It's a very simple idea. Say that you have 1 continuous LPA indicator and 2 classes. Say that your estimates in the first run come out as %c#1% [y*1]; %c#2% [y*1]; Then you change that to %c#1% [y*1]; %c#2% [y*1]; For the rest, see the SVALUES option in the UG. 


Ok, so I think I see what you are saying. I have the starting values for all the variables in each class. I just specify these in the input reordering the classes the way I want them? i.e. Class 8 starting values become class 1 starting values, for instance? 


Also, hopefully a quick question. With the DCAT output, I'd like to get the OR or RR comparing each class to every other (pairwise comparisons), rather than just the chisquares. Is there a way to do this? 


Oh, and to clarify my most recent question, I am referring to ORs/RRs for the distal outcome... not the indicator items used in the LCA, which come up as part of the LCA output by default. 


Q1: Right. Q2  Q3: See the FAQ on our website: Odds ratio confidence interval from logOR estimate and SE 


As far as I can tell, the DCAT output does not give log ORs for comparing each class (pairwise). It just gives chi square tests. I was wondering if it was possible to get these somehow. 


If you are using the DCAT option the output should look like this Prob S.E. Odds Ratio S.E. 2.5% C.I. 97.5% C.I. Class 1 Category 1 0.487 0.045 1.000 0.000 1.000 1.000 Category 2 0.513 0.045 3.933 0.793 2.379 5.486 Class 2 Category 1 0.254 0.032 1.000 0.000 1.000 1.000 Category 2 0.746 0.032 10.947 2.361 6.318 15.575 Class 3 Category 1 0.504 0.034 1.000 0.000 1.000 1.000 Category 2 0.496 0.034 3.672 0.925 1.860 5.485 ChiSquare PValue Degrees of Freedom Overall test 228.783 0.000 2 Class 1 vs. 2 19.018 0.000 1 Class 1 vs. 3 0.079 0.778 1 Class 2 vs. 3 26.816 0.000 1 The pairwise comparison and the OR are given in that output, i.e., the OR comparison for Class 1 and Class 2 has a pvalue of 0.000, although the Pvalue is coming from the test of Prob in class 1  Prob in class 2 = 0 rather than odds ratio. 


Thank you, the chi squares are not particularly useful to me, but are you suggesting that I can create confidence intervals for each of the ORs in the upper part of the output, and compare them to each other that way? i.e., if the OR for class 2 is not inside the CI for the class 1 OR, then they are significantly different? 


In my example above the Tstatistics for class 1 v.s. class 2 is sqrt(19.018)=4.361. The point estimate for the log odds ratio is log(0.487/0.513)log(0.254/0.746)=1.025 From here you can get an estimate for its SE 1.025/4.361=0.235 and a confidence interval for the log odds ratio as [1.0251.96*0.235, 1.025+1.96*0.235]=[0.565,1.486] The problem of this approach is that the Tstatistic is coming from a different scale for the same test  so it is up to you if you want to use it but this is what is available at this time. The Tstatistic is for the test P11P12=0, while what you are using it for is log(P11/(1P11))  log(P12/(1P12))=0. Even though the two tests are equivalent and asymptotically they will yield the same conclusion because of the different parameterization scale they are expected to have slightly different Tstatistics. If you decide to use the above approach to construct CI for the log odds ratio you have to treat them as an approximation. I don't agree that the chisquares are not useful. They do the same thing that the log OR confidence intervals do  they are simply in a different parameterization scale, but there is no evidence that one test is superior than the other. 


Actually I just realized that you can indeed obtain the exact SE and confidence interval. It is a bit more complicated however.It goes like this Var(P11P12)=((0.4870.254)/4.361)^2=0.003049 Since Var(P11)=0.045^2 and Var(P12)=0.032^2 you get Cov(P11,P12)=0.000097. You can then apply the delta method for log(P11/(1P11))  log(P12/(1P12)) to obtain the exact value. 

Sam Crawley posted on Thursday, December 06, 2018  5:46 pm



Hi, I have a binary distal outcome for a latent class analysis, and two binary IVs. I want to estimate the relationship between the IVs and the outcome variable for each latent class. Web note 21 suggests that DCAT should be used for a categorical outcome. However, as far as I know, this can't be used when there are other covariates in the model. Is this correct? Should I use BCH (as per Web note 21) in this case? Thanks. 


Use the "manual" approach in Section 3 of Web Note 15 declaring the distal as categorical. 


Hello, For the manual approach, how do I estimate a categorical outcome across the classes? When I try to run the below model I get an error about parameterization, but this cannot be used with mixture. Classes = c(2); nominal = N; categorical = anycps3t; Analysis: Type = mixture; Model: %OVERALL% anycps3t; %C#1% [N#1@4.114; [N#2@4.940]; [N#3@9.685]; anycps3t; %C#2% [N#1@6.082]; [N#2@13.808]; [N#3@8.833]; anycps3t; *** WARNING in MODEL command All variables are uncorrelated with all other variables within class. Check that this is what is intended. *** ERROR in MODEL command Variances for categorical outcomes can only be specified using PARAMETERIZATION=THETA with estimators WLS, WLSM, or WLSMV. Variance given for: ANYCPS3T 


Change from anycps3t to [anycps37$1]. This is the threshold for a binary variable. With an ordinal variable you can have ..$2, ...$3 etc. 

ksk posted on Friday, November 15, 2019  12:02 pm



Hello Drs. Muthen, I'm trying to look at whether class memerbership from LPA (4 classes) would be associated with a categorical distal outcome (coded 1, 2, 3). Using DCAT in latent profile analysis, I got odds ratios shown in the EQUALITY TESTS OF MEANS/PROBABILITIES ACROSS CLASSES section. I checked FAQ "Odds ratio interpretation for categorical distal outcomes using DCAT." However, I still have questions. 1) How can I know whether the odds ratio is significant? I see 2.5% CI and 97.5% CI but not sure how to use them to figure out which odds ratio is significant. 2) Each class has odds ratios for 3 categories of a distal outcome, as the distal outcome was coded 1, 2, and 3. As far as I know, Mplus set a category with the highest value as a reference group in multinomial regression. Does it work the same in the multinomial regression using DCAT? 3) In the last class, all three categories of the distal outcomes have 1 as an odds ratio, as shown below. Did I get this because something was wrong in the syntax? Prob S.E. Odds Ratio S.E. 2.5% C.I. 97.5% C.I. Class 4 Category 1 0.269 0.029 1.000 0.000 1.000 1.000 Category 2 0.081 0.019 1.000 0.000 1.000 1.000 Category 3 0.650 0.032 1.000 0.000 1.000 1.000 Thank you! 


You should send your questions with accompanying output to Support along with your license number. 

Back to top 