I have had some trouble calculating one of the marginal effects of my regression. I am running the following regression:
Code:
xtreg manemp lnpop lnpop2 lngdppc lngdppc2 _2000s _2010s 1._2000s#1.la 1._2010s#1.la, fe
Code:
esttab, drop(_cons lnpop lnpop2 lngdppc lngdppc2)
----------------------------
(1)
manemp
----------------------------
_2000s -0.00286
(-1.51)
_2010s 0.00128
(0.42)
1._2000s#1~a -0.00849**
(-2.68)
1._2010s#1~a -0.0132***
(-3.97)
----------------------------
N 1479
----------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001Code:
margins dydx(varlist)
A second question, perhaps unrelated, I am dealing with panel data on 51 countries over 29 years. I want to run the specified regressions and obtain the marginal effects for 7 different regions (Latin America being one) and for 51 different countries. So this means I want to run 58 regressions. Is there a somewhat efficient way to do this?
Thank you in advance.
Best,
Hylke Dijkstra
0 Response to Calculating Marginal Effects
Post a Comment