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
Choose Which Fixed Effect Has Coefficient 0Hi Statalisters, I'm running a fixed-effects regression with fixed-effects by region (e.g. Americas…
Heckman Procedure for Gender Wage Gap (Oaxaca Decomposition)I am trying to decompose the gender wage gap into explained and unexplained factors using the Blinde…
vector of control variables for panel datai want to know the command to get vector of control variable. I want to get vector of country level …
ppmlhdfe in panelsDear everyone, I post this because I am confused with bilateral fixed effect estimates: I estimate…
help exporting lstat results after logistic regression into word/excel documentshi all, does anyone know of a way to export the results of lstat into a word document or a table/exc…
Subscribe to:
Post Comments (Atom)
0 Response to GSEM with multiple moderators
Post a Comment