在论坛上搜索过了,也查看了xtreg的帮助文件中predict命令,得到以下结果
ue calculates the prediction of u_it +e_it.
xbu calculates the prediction of a + bx_it+ u_i, the prediction including the fixed or random component.
u calculates the prediction of u_i, theestimated fixed or random effect.
e calculates the prediction of e_it.
对应以下命令
predict u, u
predict e,e
predict ue, ue
predict xbu, xbu
首先想问,上面的命令得出的数值结果都是残差,而不是拟合值吧?
其次,我是用的xtreg y x1 x2,fe 命令做完回归后,
我要求的残差是回归方程中因变量的实际值-回归方程代入各项自变量值后的拟合值
我自己看上面各项说明,感觉是用predict xbu, xbu 对么?