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
Errors while testing for serial correlation and generating a new variableDear everyone, I am new to this page. I want to ask two questions, please I want to apologize if …
Logit FE regression in cross-sectional data.Dear Statalist, I have read about this topic in various discussions but I could not take a clear re…
After having run a robust regression, do I still need to test for heteroskedasticity?"regress indep dep control control vce(robust)" After the regression, Stata doesn't allow me to use …
Sample size calculation using Cohen's d / Hedges's gHi everyone, Can anyone please advise me on how to perform a sample size calculation using Cohen's …
Customization of graph combine with three graphsHi Statalisters I am working on a visualization where I am interested in the following graph combin…
Subscribe to:
Post Comments (Atom)
0 Response to random intercept random slope in multilevel GSEM
Post a Comment