Code:
sysuse auto sureg (price = mpg) (mpg= weight) margins, dydx(weight)
If I run the code above, I only get weight's direct effect on mpg.
I know this is easy to calculate by hand, but I would like to have an answer that generalizes to non-linear models, such as a combination of probit-linear regression.
0 Response to Use margins to obtain indirect marginal effects on a SUR model
Post a Comment