Hello,
I am conducting an analysis such that the first step is to determine specific latent classes based on 10-items related to childhood health (all binary variables). These items were retrospectively asked (2006) to older adults once in the survey. After determining the latent classes via gsem and posterior probabilities, I would like to use the latent classes to predicted later-life health (2014, 2016, 2018). Apparently, this type of analysis is referred to as a latent class growth analysis and/or growth mixture modeling. However, it doesn't seem like these models can be run in Stata. Thus, I use the posterior probabilities from the LCA analysis and created a categorical variable that represents each latent class (3 were identified from gsem). Next, I used this variable to predict changes in health over time (2014, 2016, 2018) using mixed. Is this approach appropriate or do I need to use another software? I am unable to share the data, but an example of the steps I've taken is below:
gsem (item1 item2 item3 item4 item5 item6 item7 item8 item9 item10 <-), logit lclass(C 3) ///
startvalues(randompr, draws(5) seed(15) difficult) ///
emopts(iterate(30) difficult)
estat lcmean
predict cpost*, classposteriorpr
egen max = rowmax(cpost*)
generate predclass=1 if cpost1==max
replace predclass=2 if cpost2==max
replace predclass=3 if cpost3==max
label var predclass "Prediction Class - 3 Class LCA Solution"
label define predclass 1"Class 1" 2"Class 2" 3"Class 3"
tab predclass
Next, I reshaped the data to long format and used the following code:
mixed cvd i.predclass covariates time || id: time, cov(uns)
I would like to confirm whether this approach is appropriate and appreciate any help you can provide.
I am conducting an analysis such that the first step is to determine specific latent classes based on 10-items related to childhood health (all binary variables). These items were retrospectively asked (2006) to older adults once in the survey. After determining the latent classes via gsem and posterior probabilities, I would like to use the latent classes to predicted later-life health (2014, 2016, 2018). Apparently, this type of analysis is referred to as a latent class growth analysis and/or growth mixture modeling. However, it doesn't seem like these models can be run in Stata. Thus, I use the posterior probabilities from the LCA analysis and created a categorical variable that represents each latent class (3 were identified from gsem). Next, I used this variable to predict changes in health over time (2014, 2016, 2018) using mixed. Is this approach appropriate or do I need to use another software? I am unable to share the data, but an example of the steps I've taken is below:
gsem (item1 item2 item3 item4 item5 item6 item7 item8 item9 item10 <-), logit lclass(C 3) ///
startvalues(randompr, draws(5) seed(15) difficult) ///
emopts(iterate(30) difficult)
estat lcmean
predict cpost*, classposteriorpr
egen max = rowmax(cpost*)
generate predclass=1 if cpost1==max
replace predclass=2 if cpost2==max
replace predclass=3 if cpost3==max
label var predclass "Prediction Class - 3 Class LCA Solution"
label define predclass 1"Class 1" 2"Class 2" 3"Class 3"
tab predclass
Next, I reshaped the data to long format and used the following code:
mixed cvd i.predclass covariates time || id: time, cov(uns)
I would like to confirm whether this approach is appropriate and appreciate any help you can provide.
Comment