Hello,
I need some advice on whether what I want to do is nonsense because I didn't find previous examples on this. I'm running an SEM with a linear and quadratic term (X and X2) and a continuous mediator (M) on Y. With -estat teffects- I can get the indirect effects of X and X2. However, I'd like to learn about their joint indirect effect. What I see in the output is that there is a direct effect of X on Y but not an indirect effect via M, while there is no direct effect of X2 on Y but an indirect one via M.
I tried -sem, coeflegend- followed by -nlcom- like in:
nlcom ([M: b_X] * [Y: b_M]) + ([M: b_X2] * [Y: b_M])
Best wishes,
Seb
Related Posts with SEM: estimating curvilinear effects
Monthly labor force status stored as a string variableHello, I am working with a data set which storing monthly labour force status during the survey ref…
Create a variable that has only one value per categoryI have data on automobile collisions in a particular region and, among other things, have data on th…
Event study/ DID/ Individual FE/ Time&County FEHi, I am new to Stata and in need of an advice on how to translate my model specification into code…
Calculate the rolling standard deviation for only even yearsDear all, We are stuck with a problem regarding the calculation of rolling averages only for even f…
Is my Xtdpdgmm syntax correct?xtdpd L(0/2).n L(0/1).(w k ys) year yr1980-yr1984, dgmmiv(n w k ys) div(year yr1980-yr1984) twostep …
Subscribe to:
Post Comments (Atom)
0 Response to SEM: estimating curvilinear effects
Post a Comment