我希望使用Proc ARIMA语句在SAS中开发一个ARIMA模型,但是我们直到预测日期(例如D+4)后4天才收到实际数据。因此,我需要能够让ARIMA模型使用来自D-4的滞后值并返回,而不是像目前那样使用D-1和返回。
有没有内置的选项来做这件事,或者我需要对日期和实际数据等进行一些处理。
提前感谢
发布于 2018-01-30 23:09:37
为什么不继续使用完整的数据,而只看D+4预测?
title1 'Simulated IMA(1,1) Series';
data test;
u1 = 0.9; a1 = 0;
do i = -50 to 100;
a = rannor( 32565 );
u = u1 + a - .8 * a1;
if i > 0 then output;
a1 = a;
u1 = u;
end;
run;
/*Last date observed was 100, want the forecast for 104*/
proc arima data=test ;
identify var=u(1);
estimate q=1 ;
forecast id=i interval=day out=forecast(where=(i=104));
quit;https://stackoverflow.com/questions/48523538
复制相似问题