全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1426 1
2010-06-02
data example1;

input price@@;

time=intnx('month','1Jan2004'd,_n_-1);

format time monyy.;

cards;

290
290
290
297
326
340
340
332
330
333
429
438

450
455
451
450
450
450
450
437
433
449
445
445

450
459
460
456
454
450
446
455
460
463
474
493

511
503
493
480
475
485
490
495
510
525
531
539

596
656
645
636
685
860
1000 940
940
938
808
624

627
598
585
595
607
602
590
595
614
642
725
780

;

proc
gplot
data=example1;

plot price*time;

symbol1
c=black v=star ;
proc autoreg data=example1;
model price=time/nlag=(1 4)method=ml;
output out=pout p=xhat pm=trendhat;
run;
proc gplot data=pout;
plot price *time=1 xhat*time=2 trendhat*time=3/overlay;
symbol1 v=star i=none c=red h=2.5;
symbol2 v=plus i=join c=blue h=2.5;
symbol3 v=none i=join c=green w=2;
title1'Auto-Regression';
title2'nlag=(1 4)method=ml';
run;

xhat表示的拟合的值,模型已经建立好,怎么输出预测值啊?预测的曲线倒是能画出,可是预测值怎么输出呢?毕业论文急用,有谁能帮我一下,不胜感激!
本文来自: 人大经济论坛 详细出处参考:http://www.pinggu.org/bbs/viewthread.php?tid=823683&page=1&from^^uid=1527493
二维码

扫码加我 拉你入群

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

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

全部回复
2010-6-3 13:25:41
怎么重复发帖呢?
proc print data=pout ;  var p; run;
希望你将你的毕业论文word版发上来,供坛友学习参考。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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