I'm learning LCA for the first time, so I apologize if this is naïve, but...
Once I've created latent classes in Stata, how can I use them as dependent variables?
Below, I've created two latent classes from a set of eleven binary variables. I'm trying to predict which class the respondent falls into based on an independent variable (netsizeSD) and a set of covariates (female age college i.diagnosis). Is the bolded part of my code correct?
(Note that I've constrained four parameters to avoid issues of perfect prediction.)
If this is correct, how do I interpret the output? For example, the coefficient on netsizeSD is 1.284785. Is that an odds ratio (i.e., a one-SD increase in netsize is associated with a 28% increase in the odds of being in Class 2 rather than Class 1)?
Thanks for your help.
Once I've created latent classes in Stata, how can I use them as dependent variables?
Below, I've created two latent classes from a set of eleven binary variables. I'm trying to predict which class the respondent falls into based on an independent variable (netsizeSD) and a set of covariates (female age college i.diagnosis). Is the bolded part of my code correct?
(Note that I've constrained four parameters to avoid issues of perfect prediction.)
Code:
gsem (_-> epi_strug___1 epi_strug___2 epi_strug___3 epi_strug___4 epi_strug___5 /// epi_strug___6 epi_strug___7 epi_strug___8 epi_strug___9 epi_strug___10 epi_strug___11, logit) /// (Class <- netsizeSD female age college i.diagnosis) /// (1: epi_strug___2 <- _cons@15) /// (2: epi_strug___2 <- _cons@15) /// (2: epi_strug___8 <- _cons@15) /// (2: epi_strug___10 <- _cons@15) /// , lclass(Class 2)
If this is correct, how do I interpret the output? For example, the coefficient on netsizeSD is 1.284785. Is that an odds ratio (i.e., a one-SD increase in netsize is associated with a 28% increase in the odds of being in Class 2 rather than Class 1)?
Thanks for your help.
Comment