楼主: scartanis
1925 2

关于SAS的一个共线性回归问题 [推广有奖]

  • 0关注
  • 0粉丝

高中生

37%

还不是VIP/贵宾

-

威望
0
论坛币
178 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
211 点
帖子
38
精华
0
在线时间
19 小时
注册时间
2009-1-23
最后登录
2020-6-1

楼主
scartanis 发表于 2011-4-19 19:44:58 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
最近在忙毕业论文,用到了岭回归、主分量回归还有偏最小二乘回归,初稿交上去后导师说不管用什么回归方法都必须用残差图的,但我上网找了很久也没发现岭回归之类的怎么画残差图,有哪位知道怎么画么?
二维码

扫码加我 拉你入群

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

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

关键词:线性回归 sas的 共线性 偏最小二乘回归 偏最小二乘 线性回归 SAS

沙发
edumetric 发表于 2011-4-20 00:52:20
你试试下面的程序看看里面有没有你想要的图
  1. ods rtf file="c:\temp.doc";
  2. ods graphics on;
  3. proc reg data=yourdata ridge=0 to 0.2 by 0.02 outest=temp;
  4. model y=x1-x5 / tol vif;
  5. plot / ridgeplot;
  6. run;
  7. ods graphics off;
  8. ods rtf close;
复制代码
scartanis 发表于 2011-4-19 19:44
最近在忙毕业论文,用到了岭回归、主分量回归还有偏最小二乘回归,初稿交上去后导师说不管用什么回归方法都必须用残差图的,但我上网找了很久也没发现岭回归之类的怎么画残差图,有哪位知道怎么画么?

藤椅
Isscaliu 发表于 2011-4-21 04:14:44
I don't know about this topic very much, but I just tried "plot / ridgeplot", it has no residual plot. However, I think you can achieve this manually. Once you have baising constant and transform it back to original regression term, you can calculate the fit value of y, and residual=y(observed value)-y-bar(fitted value) in the data step. and you can plot the residuals against whatever you want!
It was the best of times, it was the worst of times.

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-6 03:10