Dear Statalisters,
I'm running a model with fixed effects using reg, reghdfe and xtreg. Basically reg and reghdfe give me almost identical results except for the fact that results are less significant in reghdfe. But when I use xtreg, the results are dramatically different. One of the coefficient even has a different sign and it looks problematic. The codes I use to produce the results are presented below.
For reg I have:
Similar to this I have the following for reghdfe
For xtreg I have:
For reg the results are
coef given by reghdfe are identical)
For xtreg the results are
Could someone give me a hint as to why the two different methods give completely different results?
Thank you all so much
I'm running a model with fixed effects using reg, reghdfe and xtreg. Basically reg and reghdfe give me almost identical results except for the fact that results are less significant in reghdfe. But when I use xtreg, the results are dramatically different. One of the coefficient even has a different sign and it looks problematic. The codes I use to produce the results are presented below.
For reg I have:
Code:
reg hours_worked $control i.year i.industry1 i.level1, vce(robust)
Code:
reghdfe hours_worked $control , vce(cluster statefips) abs(year industry1 level1)
Code:
xtreg hours_worked $Control i.year i.industry1 i.level1, fe vce(robust)
coef given by reghdfe are identical) | Coef. | Std. Err | |
| Local wage | 0.354 | 0.008 |
| Wage difference ratio | 0.547 | 0.003 |
| Unemployment | 0.029 | 0.002 |
| CPI | 0.589 | 0.026 |
| Coef. | Std. Err | |
| Local wage | -0.268 | 0.065 |
| Wage difference ratio | 0.046 | 0.015 |
| Unemployment | -0.072 | 0.005 |
| CPI | 3.99 | 0.208 |
Thank you all so much

Comment