楼主: peyzf
4746 2

[面板数据求助] xtreg& fe不能predict residual? [推广有奖]

  • 1关注
  • 63粉丝

警督

大师

59%

还不是VIP/贵宾

-

威望
2
论坛币
566735 个
通用积分
200.4746
学术水平
218 点
热心指数
240 点
信用等级
140 点
经验
132065 点
帖子
12769
精华
0
在线时间
2976 小时
注册时间
2007-9-8
最后登录
2025-10-10

楼主
peyzf 发表于 2013-7-6 08:34:27 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

其可以报告预测值,即predict只有xb选项。

是否可以利用预测值,再比较其与真实值的差,进而得到残差值?

是否会有问题?如果通过简单的操作可以实现,xtreg& fe为何不加载(residual)这个选项?

二维码

扫码加我 拉你入群

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

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

关键词:Residual predict resid xtreg Pred

沙发
蓝色 发表于 2013-7-6 09:31:57
你为什么自己都不看help或者手册呢?这些问题,最应该问stata公司的编程的人。
为什么要用residual呢

  
Menu

    Statistics > Postestimation > Predictions, residuals, etc.


Options for predict

        +------+
    ----+ Main +------------------------------------------------------------------------------------

    xb calculates the linear prediction, that is, a + bx_it.  This is the default for all except the
        population-averaged model.

    stdp calculates the standard error of the linear prediction.  For the fixed-effects model, this
        excludes the variance due to uncertainty about the estimate of u_i.

    mu and rate both calculate the predicted probability of depvar.  mu takes into account the
        offset(), and rate ignores those adjustments.  mu and rate are equivalent if you did not
        specify offset().  mu is the default for the population-averaged model.

    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, the estimated fixed or random effect.

    e calculates the prediction of e_it.

    score calculates the equation-level score.

    nooffset is relevant only if you specified offset(varname) for xtreg.  It modifies the
        calculations made by predict so that they ignore the offset variable; the linear prediction
        is treated as xb rather than xb + offset.


已有 1 人评分学术水平 热心指数 收起 理由
peyzf + 1 + 1 good suggestion.

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
peyzf 发表于 2013-7-6 10:39:50
thanks.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-31 19:53