It makes no sense to try to do a Hausman test in this context. The OLS
estimator is nested within the FE (within group) estimator, so a
standard Wald F test of the hypothesis that all u_i = 0 is the test
for validity of OLS versus FE. That test is automatically performed by
xtreg, fe.