Thanks a lot Clyde for the quick reply!
-
Login or Register
- Log in with
margins race, dydx(hours)
webuse nlswork.dta, clear
xtset idcode year
xtreg ln_wage c.hours i.race#c.hours i.year, fe // same result as xtreg ln_wage i.race##c.hours i.year, fe but here - margins - does not work
margins race, dydx(hours)
...
Average marginal effects Number of obs = 28,467
Model VCE : Conventional
Expression : Linear prediction, predict()
dy/dx w.r.t. : hours
------------------------------------------------------------------------------
| Delta-method
| dy/dx Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
hours |
race |
white | .001518 .0002699 5.63 0.000 .0009891 .0020469
black | -.0021844 .0005306 -4.12 0.000 -.0032243 -.0011445
other | -.0000541 .0023919 -0.02 0.982 -.0047421 .004634
------------------------------------------------------------------------------
Comment