(3)固定效应还是随机效应?---Hausman检验
Hausman检验基本思想:如果 Corr(a_i,x_it) = 0, Fe 和 Re 都是一致的,但Re更有效。如果 Corr(a_i,x_it)!= 0, Fe 仍然一致,但Re是有偏的。因此原假设是Corr(a_i,x_it) = 0,即随机效应。
xtreg invest mvalue kstock ,fe
est store fixed
xtreg invest mvalue kstock ,re
est store random
hausman fixed random