I’m running Stata 14 on Windows 11. I’m running a fixed-effects regression on a panel dataset, where each observation is a country-year. For each country, within a set of years (the years are not necessarily the same for each country), I’d like to calculate the partial effect of (log of) GDP on (log of) various outcome variables (e.g. employment).
I’d like to verify that my setup is correct for this desired result. I get results from my code and they seem reasonable, but this is the first time I’ve used the margins command, so would like to make sure I’m interpreting it correctly.
I’ve set this up as follows:
Is this correct for the desired result?
Thanks,
Robert
I’d like to verify that my setup is correct for this desired result. I get results from my code and they seem reasonable, but this is the first time I’ve used the margins command, so would like to make sure I’m interpreting it correctly.
I’ve set this up as follows:
Code:
reg y i.country i.country#c.log_gdp log_otherxvars, vce(robust) margins i.country, dydx(log_gdp)
Thanks,
Robert

Comment