Dear Statalist,

I am running a two-way fixed effect model with IV estimation. I want to run a Hausman test to see whether fixed effect or random effect is better. However, the command hausman or xtoverid seems not work. Which command I should use in this case?

xtivreg adm_tot_log if_comment_lag overall_rating_lag cum_count_lag rn_hrpd black age adl hhi income_log population_log year_dum* (rating_if_comment_lag = other_bus_rating_if_comment_lag), re
xtoverid

Thanks