简体   繁体   中英

SAS Proc Arima forecast graph with actuals

Does proc Arima allow for the forecast plot to show actuals and forecast. I haven't been able to find any option. So far I have been merging forecast data to the actual data and plotting it. It is just an additional step that I want to avoid.

thanks

Yup. You want the FORECAST(FORECAST) plot (confusing, I agree).

Try this:

data seriesg;
set sashelp.air;
xlog = log(air);
run;

proc arima data=seriesg plots(only)=(forecast(FORECAST));
   identify var=xlog(1,12);
   estimate q=(1)(12) noint method=ml;
   forecast id=date interval=month printall out=b;
run;
quit;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM