I ran a model with fixed effects using the following two methods, and I expect the coefficient estimate for "treated" to be the same/similar.
But the results differ not insignificantly.
Method 1:
Method 2:
What is the reason for the difference? Or did I misspecify anything?
Thanks!
But the results differ not insignificantly.
Method 1:
Code:
xi: reg lwage treated i.state i.year $controls, cluster(state)
Robust | ||||||
lwage | Coef. | Std. Err. | t | P>t | [95% Conf. | Interval] |
treated | -.0545311 | .012696 | -4.30 | 0.000 | -.0800446 | -.0290176 |
Method 2:
Code:
xtset state year xtreg lwage treated $controls, fe vce(cluster state)
Robust | ||||||
lwage | Coef. | Std. Err. | t | P>t | [95% Conf. | Interval] |
treated | -.0669304 | .0148743 | -4.50 | 0.000 | -.0968214 | -.0370394 |
What is the reason for the difference? Or did I misspecify anything?
Thanks!
Comment