SAS中文论坛

标题: sas时间序列问题 [打印本页]

作者: shiyiming    时间: 2008-12-8 17:25
标题: sas时间序列问题
对于给定的一组随时间变化的数据,怎么预测未来几年内的数据呢?好像还有好多模型!请高手指导
作者: shiyiming    时间: 2008-12-8 18:45
标题: Re: sas时间序列问题
最好不要做预测模型,那等于用砖头扎自己的脚。
如果你真得想做预测模型的话,
那就用时间序列的那些基本模型模型把
arima。。。。。。。等等
作者: shiyiming    时间: 2008-12-8 20:16
标题: Re: sas时间序列问题
byes,你好啊!我要用ARIMA模型那要怎么分析预测呢?好像有很多参数要确定的吧!
十万火急啊!!!!!!!!!!
作者: shiyiming    时间: 2008-12-10 14:44
标题: Re: sas时间序列问题
2、        创建名为exp1的SAS数据集,即在窗中输入下列语句:
data exp1;
input a1 @@;
year=intnx(‘year’,’1jan1752’d,_n_-1);
format year year4.;
cards;
  输入太阳黑子数序列(见附表)
run;
3、        保存此步骤中的程序,供以后分析使用(只需按工具条上的保存按钮然后填写完提问后就可以把这段程序保存下来即可)。
4、        绘数据与时间的关系图,初步识别序列,输入下列程序:
proc gplot data=exp1;
  symbol i=spline v=star h=2 c=green;
  plot a1*year;
run;
5、        提交程序,在graph窗口中观察序列,可以看出此序列是均值平稳序列。
6、        识别模型,输入如下程序。
proc arima data=exp1;
  identify var=a1 nlag=24;
  run;
7、        提交程序,观察输出结果。初步识别序列为AR(3)模型。
8、        估计和诊断。输入如下程序:
   estimate p=3;
   run;
9、        提交程序,观察输出结果。假设通过了白噪声检验,且模型合理,则进行预测。
10、        进行预测,输入如下程序:
forecast lead=6 interval=year id=year out=out;
run;
proc print data=out;
run;
给个例子给你吧。
作者: shiyiming    时间: 2008-12-11 16:16
标题: Re: sas时间序列问题
如果觉得sas的arima模型使用过于复杂,不妨试试splus的ARIMA模型,描述简单又灵活,并且支持外生变量
作者: shiyiming    时间: 2008-12-16 23:56
标题: Re: sas时间序列问题
use "proc forecast" or "time series forecasting system" under "solutions" menu. "time series forecasting system" is very easy to use and have many models to choose. It includes arima, double exponential, Winters methods and some combinations of those methods. It will create plots and output data automatically.




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