My approach: Use margins with "at" and subsequently use "lincom" to do the subtraction. That's a bit cumbersome, because I have to address the results of "margins" manually (or in a loop).
Question: What's the easiest way to calculate multiple "lincom"s after the "margins" command with "at"?
Here's a toy example:
Code:
sysuse auto, clear regress price mpg headroom trunk weight margins, at(mpg = 20 headroom = 3 trunk = 14 weight = (1760(10)1800)) noatlegend post lincom 3000 - 1._at
Thanks for your guidance.
0 Response to Multiple "lincoms" after "margins" with "at"?
Post a Comment