Dear all,
the basic growth curve model is described as follows:
Which I have adapted from the Stata manual (https://www.stata.com/manuals13/semexample18.pdf).
Suppose, I want to add a latent variable as a predictor that is created from 3 continuous variables, I think I should adapt the code as follows:
However, despite various tests with various variables, this model never converges. I wonder if my code adaption is correct. Many thanks for advice.
the basic growth curve model is described as follows:
Code:
sem (out1 <- Intercept@1 Slope@0 _cons@0) ///
(out2 <- Intercept@1 Slope@1 _cons@0) ///
(out3 <- Intercept@1 Slope@2 _cons@0) ///
(out4 <- Intercept@1 Slope@3 _cons@0) ///
(Intercept Slope <- groupvar controlvar _cons) ///
, latent(Intercept Slope) ///
var(e.Intercept*e.Slope) noconst method(mlmv)
Suppose, I want to add a latent variable as a predictor that is created from 3 continuous variables, I think I should adapt the code as follows:
Code:
sem (out1 <- Intercept@1 Slope@0 _cons@0) ///
(out2 <- Intercept@1 Slope@1 _cons@0) ///
(out3 <- Intercept@1 Slope@2 _cons@0) ///
(out4 <- Intercept@1 Slope@3 _cons@0) ///
(Lat <- k1 k2 k3) ///
(Intercept Slope <- Lat groupvar controlvar _cons) ///
, latent(Intercept Slope Lat) ///
var(e.Intercept*e.Slope) noconst method(mlmv)

Comment