SAS中文论坛

标题: 十万火急!回归分析输出问题! [打印本页]

作者: shiyiming    时间: 2006-6-4 09:37
标题: 十万火急!回归分析输出问题!
各位大侠,小弟在进行回归分析的时候始终没有办法输出结果,提交运行信息如下:
NOTE: Copyright (c) 2002 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software Version 9.00 (TS M0)
      Licensed to SUNY AT STONY BROOK, Site 0013402001.
NOTE: This session is executing on the XP_PRO  platform.



NOTE: SAS initialization used:
      real time           3.53 seconds
      cpu time            1.65 seconds

1    data uspop;
2         input pop @@;
3         retain year 1780;
4         year=year+10;
5         yearsq=year*year;
6         pop=pop/1000;
7         cards;

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.USPOP has 19 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.80 seconds
      cpu time            0.05 seconds


10        ;
11        proc reg data=uspop;
12        var yearsq;
13        model pop=year/r cli clm;
14        plot r.*p.;
15        add yearsq;
16        plot;
17        plot pop*year='a' predicted.*year='p' u95.*year='u'
18             l95.*year='l' /overlay;
19        run;

ERROR: 
请问要如何处理才能解决这个问题啊!!
作者: shiyiming    时间: 2006-6-4 09:39
标题: 补充!!
源程序如下!
data uspop;
     input pop @@;
         retain year 1780;
         year=year+10;
         yearsq=year*year;
         pop=pop/1000;
         cards;
         3929 5308 7239 9638 12866 17069 23191 31443 39818 50155
         62947 75994 91972 105710 122775 131669 151325 179323 203211
         ;
         proc reg data=uspop;
         var yearsq;
         model pop=year/r cli clm;
         plot r.*p.;
         add yearsq;
         plot;
         plot pop*year='a' predicted.*year='p' u95.*year='u'
              l95.*year='l' /overlay;
         run;
作者: shiyiming    时间: 2006-6-12 16:14
标题: 恢复
你的程序没错啊。在我机器上运行能出来结果




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2