全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2655 2
2014-04-26


在论坛上搜索过了,也查看了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 对么?


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-2-14 09:35:09
做固定效应模型的获得残差应该用e
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-4-3 19:17:57
crystal8832 发表于 2015-2-14 09:35
做固定效应模型的获得残差应该用e
谢谢您的热心回复
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群