楼主: 青青子矜
37530 21

[回归分析求助] 【求助】用stata回归后,怎么样将回归后的残差保存下来?? [推广有奖]

11
crystal8832 学生认证  发表于 2014-8-25 19:21:11 |只看作者 |坛友微信交流群
/mg_終結 发表于 2014-5-31 21:58
你好!请问我做面板回归完之后,怎么看残差值?求助!
  1. predict res,e
复制代码


使用道具

12
wyddy 发表于 2015-3-4 20:18:55 |只看作者 |坛友微信交流群
unhtequila 发表于 2011-4-14 12:06
reg dep indep
predict res, r
请问ereturn list的值是否可以提取出来?比如生成一个标量来提取ereturn list出来的标量值?谢谢!

使用道具

13
wyddy 发表于 2015-3-4 20:21:38 |只看作者 |坛友微信交流群
unhtequila 发表于 2011-4-14 12:06
reg dep indep
predict res, r
请问ereturn list的值是否可以提取出来?比如生成一个标量来提取ereturn list出来的标量值?谢谢!

使用道具

14
jingguanhq 发表于 2017-7-23 23:45:41 |只看作者 |坛友微信交流群
crystal8832 发表于 2014-8-25 19:21
请问 predict res,e 和  predict uhat,resid 有何不同呢?

使用道具

15
crystal8832 学生认证  发表于 2017-7-24 17:37:39 |只看作者 |坛友微信交流群
jingguanhq 发表于 2017-7-23 23:45
请问 predict res,e 和  predict uhat,resid 有何不同呢?
帮助文件里的说明是酱紫的:
predict newvar if e(sample), ...  restricts the prediction to the estimation subsample

使用道具

16
jingguanhq 发表于 2017-7-24 21:36:45 |只看作者 |坛友微信交流群
crystal8832 发表于 2017-7-24 17:37
帮助文件里的说明是酱紫的:
predict newvar if e(sample), ...  restricts the prediction to the esti ...
感谢回复

使用道具

17
黃河泉 在职认证  发表于 2017-7-25 08:02:46 |只看作者 |坛友微信交流群
jingguanhq 发表于 2017-7-23 23:45
请问 predict res,e 和  predict uhat,resid 有何不同呢?
你要把回归的指令一起写出来,例如 reg 或 xtreg 之后的 predict 像就不太一样!请
  1. help reg postestimation
  2. help xtreg postestimation
复制代码
并看看 predict 选项!

使用道具

18
jingguanhq 发表于 2017-7-25 16:33:43 |只看作者 |坛友微信交流群
黃河泉 发表于 2017-7-25 08:02
你要把回归的指令一起写出来,例如 reg 或 xtreg 之后的 predict 像就不太一样!请并看看 predict 选项! ...
感谢黄老师回复!

使用道具

19
luckie-j 学生认证  发表于 2020-3-20 16:46:57 |只看作者 |坛友微信交流群
unhtequila 发表于 2011-4-14 12:06
reg dep indep
predict res, r
您这个是时间序列还是面板数据?

使用道具

20
luckie-j 学生认证  发表于 2020-3-20 21:08:24 |只看作者 |坛友微信交流群
crystal8832 发表于 2017-7-24 17:37
帮助文件里的说明是酱紫的:
predict newvar if e(sample), ...  restricts the prediction to the esti ...
哈喽哈喽,看到您在线

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-19 16:36