楼主: jy1st
7045 4

SAS proc glm 输出残差 [推广有奖]

  • 0关注
  • 0粉丝

大专生

51%

还不是VIP/贵宾

-

威望
0
论坛币
21 个
通用积分
0.0013
学术水平
2 点
热心指数
1 点
信用等级
0 点
经验
601 点
帖子
40
精华
0
在线时间
37 小时
注册时间
2008-12-19
最后登录
2016-7-28

楼主
jy1st 发表于 2014-5-18 23:23:50 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我写的如下:
proc glm data=aaa;
class year gics2;
model y = x1 x2 x3 x4 year gics2 /solution;
output out=bbb r=exy;
run;

想要得到残差项,可是在程序编辑窗口,r不是蓝色的,表明不是输出项。这是怎么回事儿呢?

查询sas帮助文件里面的例子,有下面的程序,可以在glm输出r啊。
Examples

[size=13.4399995803833px]The following statements show the syntax for creating an output data set with a single dependent variable.

proc glm;   class a b;   model y=a b a*b;   output out=new p=yhat r=resid stdr=eresid;run;

[size=13.4399995803833px]These statements create an output data set named new. In addition to all the variables from the original data set, new contains the variable yhat, with values that are predicted values of the dependent variable y; the variable resid, with values that are the residual values of y; and the variable eresid, with values that are the standard errors of the residuals.


二维码

扫码加我 拉你入群

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

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

关键词:ROC Statements statement Dependent following statements following creating solution single

沙发
mingfeng07 学生认证  发表于 2014-5-19 10:20:06
语句看起来没有问题,你重启SAS再调试一下看看。
欢迎扫一扫我头像关注, 不定期分享SAS技术知识。

藤椅
jy1st 发表于 2014-5-19 20:51:51
mingfeng07 发表于 2014-5-19 10:20
语句看起来没有问题,你重启SAS再调试一下看看。
重启试了,还是不行。

板凳
mingfeng07 学生认证  发表于 2014-5-19 22:29:17
jy1st 发表于 2014-5-19 20:51
重启试了,还是不行。
你调试后log截个图我看看。
欢迎扫一扫我头像关注, 不定期分享SAS技术知识。

报纸
jy1st 发表于 2014-5-20 09:42:48
mingfeng07 发表于 2014-5-19 22:29
你调试后log截个图我看看。
谢谢楼上的。我今天用学校电脑运行,就出结果了,尽管R不是蓝色。

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-8 12:41