Search code examples
sasforecasting

plot entire time series in SAS?


I am trying to make a forecast, and I want to see the entire time series, with the forcasted period at the end (need to compare with another graph of this kind).

SAS 9.4 does not want to comply, however, and only shows me the forecasting part.

What can I do to remedy this?

The code I'm using is:

Proc arima data=logtabell;

identify var=y(12) nlag=24;

estimate p=1 q=2;

forecast lead=12 interval=month id=date out=results;

run;

Solution

  • SAS procedures have an out=resultSet option, from which you can get the results in a dataset. Combine this output with your time serious in one graph created with proc sgplot