楼主: aforhui
2127 0

[求助]请问回归的outest 可以排序..却不能用if-then-else-if的语法分成六个文件? [推广有奖]

  • 0关注
  • 0粉丝

小学生

28%

还不是VIP/贵宾

-

威望
0
论坛币
16 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
92 点
帖子
5
精华
0
在线时间
0 小时
注册时间
2008-12-25
最后登录
2011-9-30

楼主
aforhui 发表于 2009-5-9 14:52:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

请问回归的outest 可以排序..却不能用if-then-else-if的语法分成六个文件?
附上程序、及log

proc reg data=fin noprint outest=regfin ;
model rr=mktret D1 D2 D3 D4 D5 D6;
model rr=mktret D1B1 D2B1 D3B1 D4B1 D5B1 D6B1 D1 D2 D3 D4 D5 D6 D1A1 D2A1 D3A1 D4A1 D5A1 D6A1;
model rr=mktret D1B2 D2B2 D3B2 D4B2 D5B2 D6B2 D1 D2 D3 D4 D5 D6 D1A2 D2A2 D3A2 D4A2 D5A2 D6A2;
model rr=mktret D1B3 D2B3 D3B3 D4B3 D5B3 D6B3 D1 D2 D3 D4 D5 D6 D1A3 D2A3 D3A3 D4A3 D5A3 D6A3;
model rr=mktret D1B4 D2B4 D3B4 D4B4 D5B4 D6B4 D1 D2 D3 D4 D5 D6 D1A4 D2A4 D3A4 D4A4 D5A4 D6A4;
model rr=mktret D1B5 D2B5 D3B5 D4B5 D5B5 D6B5 D1 D2 D3 D4 D5 D6 D1A5 D2A5 D3A5 D4A5 D5A5 D6A5;
by sktno_v;


proc sort data=regfin;
by _model_;
 
data finm1 finm2 finm3 finm4 finm5 finm6;
set regfin;
if _model_=model1 then output finm1;
else if _model_=model2 then output finm2;
else if _model_=model3 then output finm3;
else if _model_=model4 then output finm4;
else if _model_=model5 then output finm5;
else if _model_=model6 then output finm6;
run;
 
log如下
569  proc sort data=regfin;
570  by _model_;
571  run;
NOTE: There were 330 observations read from the data set WORK.REGFIN.
NOTE: The data set WORK.REGFIN has 330 observations and 74 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.06 seconds
      cpu time            0.03 seconds

572  data finm1 finm2 finm3 finm4 finm5 finm6;
573  set regfin;
574  if _model_=model1 then output finm1;
575  else if _model_=model2 then output finm2;
576  else if _model_=model3 then output finm3;
577  else if _model_=model4 then output finm4;
578  else if _model_=model5 then output finm5;
579  else if _model_=model6 then output finm6;
580  run;
NOTE: Variable model1 is uninitialized.
NOTE: Variable model2 is uninitialized.
NOTE: Variable model3 is uninitialized.
NOTE: Variable model4 is uninitialized.
NOTE: Variable model5 is uninitialized.
NOTE: Variable model6 is uninitialized.
NOTE: There were 330 observations read from the data set WORK.REGFIN.
NOTE: The data set WORK.FINM1 has 0 observations and 80 variables.
NOTE: The data set WORK.FINM2 has 0 observations and 80 variables.
NOTE: The data set WORK.FINM3 has 0 observations and 80 variables.
NOTE: The data set WORK.FINM4 has 0 observations and 80 variables.
NOTE: The data set WORK.FINM5 has 0 observations and 80 variables.
NOTE: The data set WORK.FINM6 has 0 observations and 80 variables.

二维码

扫码加我 拉你入群

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

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

关键词:outest else test Then LSE 求助 文件 语法 outest

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

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