我给你一个小程度,你改一下变量,然后跑一下,最后通过卡方值及其对应的概率判断,如果卡方值较大,且对应的概率小于0.05,就可以认为随机效应与固定效应系数差异较大,该模型认定为固定效应。
一般情况下,都有固定效应。
xtreg fatal beertax spircons unrate perinck,fe
estimates store FE
xtreg fatal beertax spircons unrate perinck,re
estimates store RE
hausman FE RE, constant sigmamore