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
Mixed-effects logistic regression for panel dataHello, I am using mixed-effects logistic regression for panel data in STATA 15, and I was wondering …
Can Stata 16 frames be appended?Fellow Statalsters (especially StataCorp) Many thanks to StataCorp for Stata 16. The frames are a s…
Ereturn Scalar on MI Estimate?Hi All, I currently am trying to perform a bootstrap on mi estimate: logistic. However, when I run …
2x2 AB/BA crossover trial analysis resources/adviceHi all. I would like to conduct the analysis of a trial comparing two drugs (A and B) on reducing p…
Summarizing special character of string variable*Is there any command by which I can summarize special characters (e.g. *,-.) of string variable? …
Subscribe to:
Post Comments (Atom)
0 Response to random intercept random slope in multilevel GSEM
Post a Comment