All of the models presented here add advanced features to “baseline” static and dynamic latent class models. This includes information about latent class moderation, adding inverse propensity score weights to models, multilevel latent class models, and associative latent transition analysis, among other topics. Note that these models fall under the broad classification of loglinear modeling with latent variables.

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.

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.