These models include example Mplus code. Mplus and its corresponding documentation is available at www.statmodel.com. Note that we recommend the “combination add-on” version.

LCA: Baseline LCA with 3+ level categorical indicators

This code fits a longitudinal latent class model, using categorical indicators with 3+ levels, to identify latent classes indicated by multidimensional experiences of racism and heterosexism during the transition to adulthood among sexual minority men of color.

LCA: Latent class moderation

This code demonstrates how to use a latent class moderator to examine heterogeneity in intervention effects among adolescents receiving treatment for cannabis use. First, the code identifies latent classes of contextual and individual risk at baseline using LCA. Then, it uses an adjusted 3-step approach with BCH weights to regress the outcomes on level of care, latent class membership, the interaction between them, and covariates.

LCA: LCA with a grouping variable and without measurement variance

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.

LPA: LPA with a grouping variable without measurement invariance

Description This code fits a baseline, latent-profile model to identify and describe profiles of financial stress responses. It doesn’t impose measurement invariance across the groups. This model is similar to the model in the research paper titled “Financial stress response profiles and psychosocial functioning in low-income parents” published in Journal of Family Psychology in 2018. One key difference is that this model DOES NOT impose measurement invariance while the model in the paper DOES impose measurement invariance. The paper can be found here: https://pubmed.ncbi.nlm.nih.gov/29878812/ The code for the model in the paper (i.e. with measurement invariance) can be found here....

MLCA: Marginal approach with covariates at day-level and person-level

This model estimates six day-level latent classes of substance use consequences using a marginal modeling approach to account for the nested data structure. One one day-level covariate (daily positive affect) and person-level covariate (student is under legal drinking age) are included to predict consequence latent class membership.

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.