Hello,
I am using teffects with pomeans to estimate the potential outcome means of the treatment "elective":
I see this output:
I would like to calculate the marginal treatment effect across age. However, the margins post-estimation command does not work after teffects. I was wondering if anyone had any solutions for a workaround?
If I was using a logistic regression, I would do this:
However, I can't find a translation to teffects. Thank you in advance for any ideas!
I am using teffects with pomeans to estimate the potential outcome means of the treatment "elective":
Code:
teffects ipwra (died age female hospital, logit) (elective), pomeans
Code:
------------------------------------------------------------------------------
| Robust
died | Coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
POmeans |
elective |
0 | .0098819 .0008252 11.98 0.000 .0082646 .0114993
1 | .0024719 .0002165 11.42 0.000 .0020475 .0028963
------------------------------------------------------------------------------
If I was using a logistic regression, I would do this:
Code:
logistic died elective age female hospital, base margins, by(age elective)

Comment