Hi,
i would like to ask about adding random slope into the mediation model using GSEM.
My model look like this:
anx_trait is the second level variable
NA_esm and paranoia_esm are first level variables
all variables are nested within participants (subjno)
the model is trying to explain the association between attachment anxiety and momentary paranoia via mediating effect of momentary negative affectivity.
Array
If I understand it right, so far the model should calculate random intercept for all subjects - please correct me if I am doing something wrong. I would like to add random slope as well. How can I do that ? thanks for the answer.
stata code:
gsem (anx_trait -> NA_esm, ) (anx_trait -> paranoia_esm, ) (NA_esm -> paranoia_esm, ) (M1[subjno] -> NA_esm, ) (M2[subjno] -> paranoia_esm, ), covstruct
> (_lexogenous, diagonal) latent(M1 M2 ) nocapslatent
Related Posts with random intercept random slope in multilevel GSEM
A stochastic frontier model with correction for sample selection in StataDear Statalist, I am trying to estimate a SFM that can address selection bias. Theoretically, I am …
P value for trendI would be very grateful if someone could help me with the code for this - I'm reporting the inciden…
Selected variables for LassoI'm performing an inferential lasso model (dslogit) and I've specificed some variables of interest a…
Generate dummy if last observation for an individual in panel occurs before time xHello, I have a panel of banks from year 1905 to 1910. Some banks have observations for the whole d…
midas: Hessian has become unstable or asymmetric r(504);I have one more query on midas please. While doing analysis, an error statement came up as below Hes…
Subscribe to:
Post Comments (Atom)
0 Response to random intercept random slope in multilevel GSEM
Post a Comment