The models presented here require longitudinal data (i.e., data that are collected at two or more occasions). Code is available for models such as latent transition analysis (LTA), repeated measures LCA (RMLCA), and associative latent transition analysis (ALTA), among others.

LTA: Baseline Latent Transition Analysis with Categorical Indicators

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 imposed such that analogous item-response probabilities within classes are restricted to be equal to each other across groups.

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.

MLCA: Non-parametric approach with covariates at the day-level and person-level

This code fits a 2-level latent-class model with covariates using a “non-parametric approach.” This model simultaneously estimates day-level classes of substance-related consequences and person-level classes that group individuals based on proportion of each type of day. This model includes covariates at each level to estimate associations with both the day-level and person-level classes.

MLCA: Non-parametric approach without covariates

This code fits a 2-level latent-class model without covariates using a “non-parametric approach.” This model simultaneously estimates day-level classes of substance-related consequences and person-level classes that group individuals based on proportion of each type of day.

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.