Would you please help me on the following question?
I want to look at the effect of x on y. I suspect that x affects y in 4 ways: (1) a direct effect, (2) an indirect effect through a, (3) an indirect effect through b, and (4) an indirect effect through c. I have a set of control variables, and instrumental variable a1 for a, b1 for b, and c1 for c.
I run the following code:
gsem (a <- a1 x controls) (b<-b1 x controls) (c<-c1 x controls) (y <- a b c x controls)
Then I calculate the following:
(2) indirect effect through a
nlcom _b[y:a]*_b[a:x]
(3) indirect effect through b
nlcom _b[y:b]*_b[b:x]
(4) indirect effect through c
nlcom _b[y:c]*_b[c:x]
Total effect
nlcom _b[y:x]+(2)+(3)+(4)
Could you please advise me if the above procedure is correct?
Thank you.
Related Posts with GSEM with multiple moderators
Alternatives to ttest using svy? Comparison of means between male and female respondentsI am using Stata 14.1, I have a dataset obtained via survey, where I have circa. 10 variables which …
Trying to calculate an indexHi, I'm aware that the -duncan- command exists, but I need to do this manually for some other reaso…
Diff-in-DiffI am trying to do a diff-in-diff analysis on the effect of endorsement on a product. This is what my…
Regression - No Observations r(2000) no missing observations, no stringsHi! I am attempting to run a linear regression but keep getting an r(2000) error - no observations. …
Converting data in national currencies in panel data set into one common currencyHello everyone, I am currently working on my Master Thesis and I would need a help with conversion …
Subscribe to:
Post Comments (Atom)
0 Response to GSEM with multiple moderators
Post a Comment