Hi all,
I am attempting to run a cross-lagged panel model. I have two continuous variables (depression & body image dissatisfaction) at two time points. I also want to add a cluster variable for school. I am able to successfully run the basic model using the following code:
gsem (DS_1 -> ds_t1, ) (DS_1 -> DS_2, ) (DS_1 -> ED_2, ) (DS_2 -> ds_t3, ) ///
(ED_2 -> diss_t3, ) (ED_1 -> diss_t1, ) (ED_1 -> DS_2, ) (ED_1 -> ED_2, ), ///
covstruct(_lexogenous, diagonal) latent(DS_1 DS_2 ED_2 ED_1 ) reliab(ds_t3 .8 ds_t1 .8 diss_t3 .8 diss_t1 .8 ) nocapslatent
However, when I attempt to add the cluster variable for school using the following code:
gsem (DS_2 -> ds_t3, ) (DS_1 -> ds_t1, ) (DS_1 -> DS_2, ) (DS_1 -> ED_2, ) ///
(ED_2 -> diss_t3, ) (ED_1 -> diss_t1, ) (ED_1 -> DS_2, ) (ED_1 -> ED_2, ) (M1[school_id] -> ds_t3, ),
> covstruct(_lexogenous, diagonal) latent(DS_2 DS_1 ED_2 ED_1 M1 ) ///
reliab(ds_t3 .8 ds_t1 .8 diss_t3 .8 diss_t1 .8 ) nocapslatent from (b)
I get the following error message
Iteration 0: log likelihood = -5990.2821 (not concave)
cannot compute an improvement -- discontinuous region encountered
r(430);
Is anybody any to advise on how I may address this error?
Thank you!
Related Posts with Gsem
Generating multiple of the same report, with different resultsMy goal is to create several PDF reports using the putpdf function. With the data I have right now, …
repeat ineqdeco routine for several countriesHi, I need to compute overall theil index, within and between decomposition and inequality for subgr…
Kaplan-Meier survival: reporting the number of patients at riskThe sts graph command comes with a handy risktable option that reports the number of patients at ris…
Using MICE wellI have an epidemiological data set and am interested in the association of exposure to cigarette smo…
Problem using Sampling Weights for different Survey YearsDear Statalist Users, I am analysing Panel Data at the individual level in 3 Survey Years: 1992, 20…
Subscribe to:
Post Comments (Atom)
0 Response to Gsem
Post a Comment