楼主: Rebecca0801
11341 19

[回归分析求助] stata做tobit回归后如何保存残差项 [推广有奖]

  • 0关注
  • 0粉丝

已卖:4份资源

高中生

52%

还不是VIP/贵宾

-

威望
0
论坛币
2185 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
170 点
帖子
15
精华
0
在线时间
36 小时
注册时间
2014-10-16
最后登录
2019-11-23

楼主
Rebecca0801 发表于 2018-5-19 15:27:12 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
求助!!!如题,stata做tobit回归后如何保存残差项?输入predict e,r 显示option resid not allowed。应该是tobit回归不能用该命令。

请问应该是predict跟哪一个呢?
Main
        xb        linear prediction; the default
        residuals        residuals
        score        score; equivalent to residuals
        rstandard        standardized residuals
        rstudent        Studentized (jackknifed) residuals
        cooksd        Cook's distance
        leverage  hat        leverage (diagonal elements of hat matrix)
        pr(a,b)        Pr(y  a < y < b)
        e(a,b)        E(y  a < y < b)
        ystar(a,b)        E(y*), y* = max(a,min(y,b))
*        dfbeta(varname)        DFBETA for varname
        stdp        standard error of the linear prediction
        stdf        standard error of the forecast
        stdr        standard error of the residual
*        covratio        COVRATIO
*        dfits        DFITS
*        welsch        Welsch distance


二维码

扫码加我 拉你入群

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

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

关键词:tobit回归 stata 回归后 残差项 standard error

回帖推荐

_无恙 发表于4楼  查看完整内容

predict double xb if e(sample), xb gen double re= yy - xb if e(sample) 其中 yy是被解释变量

沙发
熙陌静 发表于 2018-5-23 16:11:40
楼主,我也遇到此情况了,不知道楼主解决了没有?另外,在使用tobit模型之前,用做同方差和正态性检验吗?谢谢!

藤椅
大壹子 发表于 2018-5-28 09:53:50
predict res_a , res

板凳
_无恙 学生认证  发表于 2018-5-28 10:48:45
predict double xb if e(sample), xb
gen double  re=  yy - xb if e(sample)
其中 yy是被解释变量
已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
贾多多 + 5 + 1 + 1 + 1 精彩帖子
黃河泉 + 3 + 3 + 3 分析的有道理

总评分: 论坛币 + 5  学术水平 + 4  热心指数 + 4  信用等级 + 4   查看全部评分

报纸
黃河泉 在职认证  发表于 2018-5-28 16:01:17
请 help tobit postestimation 并上面见 _无恙之建议。

地板
Rebecca0801 发表于 2018-6-8 21:28:58
_无恙 发表于 2018-5-28 10:48
predict double xb if e(sample), xb
gen double  re=  yy - xb if e(sample)
其中 yy是被解释变量
非常感谢,按照您说的做出来了

7
Rebecca0801 发表于 2018-6-8 21:29:49
黃河泉 发表于 2018-5-28 16:01
请 help tobit postestimation 并上面见 _无恙之建议。
好嘞,谢谢您

8
Rebecca0801 发表于 2018-6-8 21:32:41
熙陌静 发表于 2018-5-23 16:11
楼主,我也遇到此情况了,不知道楼主解决了没有?另外,在使用tobit模型之前,用做同方差和正态性检验吗?谢 ...
保存tobit回归残差的办法见_无恙的回复;另外是否做同方差和正态性检验,我认为要看你样本情况

9
Rebecca0801 发表于 2018-6-9 10:07:30
_无恙 发表于 2018-5-28 10:48
predict double xb if e(sample), xb
gen double  re=  yy - xb if e(sample)
其中 yy是被解释变量
那请问如果回归的时候分年度分地区了,又该如何生成残差呢?谢谢
具体:
bys year area:tobit y x,ll(0)
之后再predict double xb if e(sample), xb
gen double  re=fn101 - xb2 if e(sample)
结果是绝大部分样本的残差为缺失值,不太正常。请问是什么问题?该怎么做呢?

10
_无恙 学生认证  发表于 2018-6-16 20:08:03
Rebecca0801 发表于 2018-6-9 10:07
那请问如果回归的时候分年度分地区了,又该如何生成残差呢?谢谢
具体:
bys year area:tobit y x,ll(0 ...
这个我也不太清楚了,不好意思啊

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

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