「xtreg」で出来る。標準ではランダム効果、「fe」オプションで固定効果モデル。
xtreg y x, fe
xtregの最後に「vce(robust)」オプションを付ける。
xtreg y x, fe vce(robust)
robustオプションを付けると、Hausman検定が出来ない。