楼主: KevinXiong
14480 10

SAS中线性回归REG怎么输出标准化残差 [推广有奖]

  • 0关注
  • 0粉丝

高中生

25%

还不是VIP/贵宾

-

威望
0
论坛币
11 个
通用积分
0.4500
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
8702 点
帖子
26
精华
0
在线时间
23 小时
注册时间
2012-10-22
最后登录
2022-9-30

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
SAS中线性回归REG怎么输出标准化残差啊?output out=output r=residuals student=sresiduals;
这样只能输出残差和学生化残差

查了sas的文档,也没找到相应的输出变量:

http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_reg_sect015.htm

COOKD=names
Cook’s  influence statistic

COVRATIO=names
standard influence of observation on covariance of betas

DFFITS=names
standard influence of observation on predicted value

H=names
leverage,  

LCL=names
lower bound of a % confidence interval for an
individual prediction. This includes the variance of the
error, as well as the variance of the parameter estimates.

LCLM=names
lower bound of a % confidence interval for the
expected value (mean) of the dependent variable

PREDICTED | P=names
predicted values

PRESS=names
th residual divided by , where  is the leverage,
and where the model has been refit without the th
observation

RESIDUAL | R=names
residuals, calculated as ACTUAL minus PREDICTED

RSTUDENT=names
a studentized residual with the current observation deleted

STDI=names
standard error of the individual predicted value

STDP=names
standard error of the mean predicted value

STDR=names
standard error of the residual

STUDENT=names
studentized residuals, which are the residuals divided by their
standard errors

UCL=names
upper bound of a % confidence interval for an
individual prediction

UCLM=names
upper bound of a % confidence interval for the
expected value (mean) of the dependent variable


谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:标准化残差 线性回归 REG 标准化 observation standard names

回帖推荐

ziyenano 发表于7楼  查看完整内容

data ex; input y x; cards; 33.35 1854 34.78 1857 36.22 1948 37.66 2017 39.09 2092 40.53 2197 41.76 2608 42.81 2937 43.9 3119 44.94 3654 ; run; proc reg data=ex; model y=x; output out=res student=stu h=h; run; quit; data res; set res; std_res=stu*(1-h); /*std_res即为标准化残差*/ run;

本帖被以下文库推荐

沙发
webgu 发表于 2012-11-27 21:15:27 |只看作者 |坛友微信交流群
是个问题。
SAS资源
1. SAS 微信:StatsThinking
2. SAS QQ群:348941365

使用道具

藤椅
retrydj 发表于 2012-11-28 10:01:21 |只看作者 |坛友微信交流群
我帮你查了下,SAS  里确实不好的standardized residual 但是这里hilight的部分有说怎么得到:
http://books.google.com/books?id ... in%20sas&f=true

使用道具

板凳
KevinXiong 发表于 2012-11-28 10:17:15 |只看作者 |坛友微信交流群
retrydj 发表于 2012-11-28 10:01
我帮你查了下,SAS  里确实不好的standardized residual 但是这里hilight的部分有说怎么得到:
http://boo ...
链接只有这本书的介绍信息《Discovering Statistics Using SAS》,没办法点进去看
thanks a lot

使用道具

报纸
retrydj 发表于 2012-11-28 10:52:44 |只看作者 |坛友微信交流群
KevinXiong 发表于 2012-11-28 10:17
链接只有这本书的介绍信息《Discovering Statistics Using SAS》,没办法点进去看
thanks a lot
Capture.JPG Capture2.JPG
不知道你可不可以看清

使用道具

地板
ziyenano 发表于 2012-11-28 11:28:28 |只看作者 |坛友微信交流群
可以根据定义算:
第一种:
标准化残差=残差/(sig)      /这里的sig=Root MSE
页面输出中有root mse这一项,可以用参数除以这项可以得到标准化残差
但是此种方法比较麻烦
第二种:
学生化残差=残差/[(1-hii)*sig]     /hii为杠杆值
output out=  student=student  h=h;  /h=   输出每个观测的杠杆值

学生化残差*(1-hii)=残差/sig      /即得到标准化残差

使用道具

7
ziyenano 发表于 2012-11-28 11:30:30 |只看作者 |坛友微信交流群
data ex;
input
y x;
cards;
33.35 1854
34.78 1857
36.22 1948
37.66 2017
39.09 2092
40.53 2197
41.76 2608
42.81 2937
43.9 3119
44.94 3654
;
run;

proc reg data=ex;
model y=x;
output out=res  student=stu h=h;
run;
quit;

data res;
set res;
std_res=stu*(1-h);  /*std_res即为标准化残差*/
run;
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

使用道具

8
KevinXiong 发表于 2012-11-28 13:12:01 |只看作者 |坛友微信交流群
多谢两位耐心的解答,非常感谢!

使用道具

9
lqwoailuo 发表于 2013-12-10 10:28:27 |只看作者 |坛友微信交流群

使用道具

10
yuyuyuy 发表于 2018-3-5 11:07:33 |只看作者 |坛友微信交流群
厉害了

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

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

GMT+8, 2024-4-25 16:15