The models presented here include indicators all or some of which have categorical response options.
LCA: Baseline LCA with all binary indicators
This code fits a 4-class, baseline, latent-class model for marijuana use and attitudes using 7 binary indicators of the latent class variable. This code also plots the item-response probabilities using a line graph.
LCA: LCA with a covariate (1-step approach)
Description This code fits a 4-class, latent-class model for marijuana use and attitudes using a model-based approach (1-step approach). It includes a covariate for grades in the model. Software Downloads Latent Gold Mplus SAS Stata Exercise Exercise 5 This exercise asks you to use a model-based approach (1-step approach) to add a covariate for grades to a 4-class model for marijuana use and attitudes that uses 7 binary indicators of the latent class variable. You have to carefully consider what latent class to use as the reference class in the multinomial logistic regression. You may wish to standardize the grades...
LCA: LCA with a covariate and a grouping variable (1-step approach)
Description This code fits a 4-class, latent-class model for marijuana use and attitudes using a model-based approach (1-step approach). It includes a covariate for grades and a grouping variable for year in the model. Software Downloads Latent Gold SAS Exercise Exercise 5 This exercise asks you to use a model-based approach (1-step approach) to add a covariate for grades and a grouping variable for year to a 4-class model for marijuana use and attitudes that uses 7 binary indicators of the latent class variable. You have to carefully consider what latent class to use as the reference class in the...
LCA: LCA with a grouping variable and measurement invariance
This code fits a 4-class, latent-class model for marijuana use and attitudes using 7 binary indicators of the latent class variable. It includes a grouping variable for year, and observations came from 3 different years.
LCA: LCA with a grouping variable and without measurement variance
Description This code fits a 4-class, latent-class model for marijuana use and attitudes using 7 binary indicators of the latent class variable. It includes a grouping variable for year, and observations came from 3 different years. Measurement invariance across groups is not imposed resulting in an unrestricted latent class model with multiple groups. Software Downloads Latent Gold Mplus SAS Stata Exercise Exercise 4 This exercise asks you to add a grouping variable for year to a 4-class model for marijuana use and attitudes that uses 7 binary indicators of the latent class variable. It asks you to fit a model...
LTA: Baseline LTA with 2 times, all binary indicators, and measurement invariance
This code fits a 2-time, 5-class, latent-transition model for delinquency over time using 6 binary indicators of the latent class variable. Measurement invariance across time is imposed such that analogous item-response probabilities within classes are restricted to be equal to each other across times.
Let’s stay in touch.
We are in this together. Receive an email whenever a new model or resource is added to the Knowledge Base website.