Thank you. As I mentioned I used -xtreg- for the
original equation as I believed that random-effects
GLS is a less biased estimator than OLS, since the
data are grouped across workplaces (Moulton, 1987). A
Hausman test easily rejects the fixed effects GLS.
I tried to perform the Hausman test by estimating the
model with -xtivreg- using re. But this is what I got:
. xtivreg pay yrsed (b4a2 = dhat) mnedwk2 e1a1
p1a2-p1a5 v2a1-v2a5 v14a1 dis2 h2a2 h2a3 h4a2 h3a1
h3a3 h3a4 f1a1 z2-z6 ratiopk2 n1-n4 n6-n12
fnonmana1-fn6 fno1-fno6 ratiofk2 aga1 k2-k4 in1 c1,
re
no room to add more variables