I understand that using "xtreg, fe"; "areg, absorb(unit)"; and "reg i.unit" are equivalent estimators and should result in the same estimate.
I was experimenting with these three estimators for a model with only one unit-invariant variable and expecting a null result for all three estimators. To my surprise, I find that reg with unit dummies actually estimates a coefficient.
To make it more concrete, here is the code:
Why does the last regression estimate a coefficient and standard error for white but not the other two estimators?
I was experimenting with these three estimators for a model with only one unit-invariant variable and expecting a null result for all three estimators. To my surprise, I find that reg with unit dummies actually estimates a coefficient.
To make it more concrete, here is the code:
Code:
use http://www.stata-press.com/data/r15/nlswork.dta, clear generate white = race == 1 keep if idcode < 600 // reduce the number of units to facilitate reg estimation xtset idcode xtreg ln_wage white, fe areg ln_wage white , absorb(idcode ) reg ln_wage white i.idcode
Why does the last regression estimate a coefficient and standard error for white but not the other two estimators?
Comment