楼主: 机器猫插袋
1649 7

[问答] 各位帮忙看看这个代码,PROC REG,使用ADD想加一个变量不成功 [推广有奖]

  • 1关注
  • 0粉丝

本科生

41%

还不是VIP/贵宾

-

威望
0
论坛币
396 个
通用积分
0
学术水平
4 点
热心指数
4 点
信用等级
4 点
经验
546 点
帖子
110
精华
0
在线时间
77 小时
注册时间
2011-10-12
最后登录
2016-9-6

楼主
机器猫插袋 发表于 2013-5-30 10:23:34 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
1.jpg
加上PRINT;也不行.程序运行以后,还是重新做了之前MODEL里的回归. 请问各位,我的代码哪里写错了?!
二维码

扫码加我 拉你入群

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

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

关键词:add ROC REG model print 成功 看看

沙发
机器猫插袋 发表于 2013-5-30 10:32:30
求助各位

藤椅
邓贵大 发表于 2013-5-30 11:12:26
your code looks awesome. honestly, I won't be able to do a better job. maybe there's something wrong with your data. Are all sqdu's missing?
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

板凳
机器猫插袋 发表于 2013-5-30 14:45:49
邓贵大 发表于 2013-5-30 11:12
your code looks awesome. honestly, I won't be able to do a better job. maybe there's something wrong ...
DATA没有问题的.
可以在MODEL后面加上SQDU来实现.
这也正是我苦恼的地方

报纸
ruanchonghang 发表于 2013-5-30 18:01:29
把add和model之间的run 去掉试试? 或者把sqdu加到 _col8的后面

地板
jingju11 发表于 2013-5-31 01:00:31
Hi, so surprised that it is not working when adding PRINT statement:
proc reg; var; model; run; add; print; run;..; quit;

As my understanding, ADD will add a variable to the previous model and refit the model. PRINT will print the results out. That is, without PRINT, you may get an updated table from OUTPUT statement but not a new table from ODS OUTPUT statement because it depends on the print out. Of course, without PRINT, you won’t see the results from listing window.
If the following code not working, you may run into a true trouble:

PROC REG;
….;
RUN;
ADD ; PRINT; RUN;
Jingju

7
机器猫插袋 发表于 2013-5-31 20:05:22
ruanchonghang 发表于 2013-5-30 18:01
把add和model之间的run 去掉试试? 或者把sqdu加到 _col8的后面
谢谢.现在确定可能是SAS的问题.
准备重装

8
机器猫插袋 发表于 2013-5-31 20:10:53
jingju11 发表于 2013-5-31 01:00
Hi, so surprised that it is not working when adding PRINT statement:
proc reg; var; model; run; add ...
IT'S NOT WORKING.THANKS FOR YOUR HELP ANYWAY!
It seems sas9.3 can not  work completely in win8. I encounterd lots of problems today while programming is perfect! So ,code is fine. I will install win7 and reinstall sas9.3 sometime. And thanks for your help again!

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

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