全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
6972 4
2014-05-18
我写的如下:
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.


二维码

扫码加我 拉你入群

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

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

全部回复
2014-5-19 10:20:06
语句看起来没有问题,你重启SAS再调试一下看看。
二维码

扫码加我 拉你入群

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

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

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

扫码加我 拉你入群

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

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

2014-5-19 22:29:17
jy1st 发表于 2014-5-19 20:51
重启试了,还是不行。
你调试后log截个图我看看。
二维码

扫码加我 拉你入群

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

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

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

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群