The models presented here add covariates/predictors to “baseline” models. Code is available for model-based approaches (i.e., one-step approaches) and for classify-analyze approaches (i.e., 3-step approaches).

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.

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.