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
Odd Stata/Mata bug when using xtreg, fe in a program together with Mata views under version controlUnder Stata 15.1, I experienced an odd behavior in a program that I have written. I first created a …
Dealing with a variable that has both numeric and categorical observationsHi everyone. I am new to this site so please bear with me. I am running a regression of property va…
Stata 15 crashes when using unicode translateDear community, I am using Chinese panel data for 2012 and 2014 and I've been using the Code: uni…
Stochastic frontier panel estimationsDear all, Your assistance will be greatly appreciated! I am running a stochastic frontier model wi…
How to Calculating time difference between visits in a panel dataI hope this finds you well. I kindly need your help to calculate the time difference(Months, Years …
Subscribe to:
Post Comments (Atom)
0 Response to SEM: estimating curvilinear effects
Post a Comment