Data visualization with SAS programming

Using PROC ARIMA and ODS Graphics

Reply
New Contributor
Posts: 2

Using PROC ARIMA and ODS Graphics

Hi All-

I am using SAS 9.3 TS Level 1M2.  I've been using PROC ARIMA for a while now, but would like to get the plots with color.  All I can seem to get are the basic line printer plots.  I have looked in tools -> options, and validate that the ODS Graphics is on.  I have also tried using the 'ods graphics on;' statement.  But all I can get is the same result.

 

Could someone please give me some guidance as to what I may be missing?

 

Much appreciated!

-Kyle

SAS Super FREQ
Posts: 3,630

Re: Using PROC ARIMA and ODS Graphics

Post the code that you are using to call PROC ARIMA.  Are you specifying the PLOTS= option on the PROC ARIMA statement?

 

There is an example in the documentation that shows how to request ODS graphics: http://support.sas.com/documentation/cdl/en/etsug/66100/HTML/default/viewer.htm#etsug_arima_details5...

 

New Contributor
Posts: 2

Re: Using PROC ARIMA and ODS Graphics

Hi Rick-

Thanks for the reply.  I have tried various ways, including the plots=option as well as 'ods graphics on;'.  Below are three versions of code that provide me with the same output.

 

*example #1;
proc arima data=arima_data;
identify var=sw(52) nlag=24 scan esacf stationarity=(adf=(0,1,2,3,4));
estimate p=1 q=1;
forecast lead=21 id=t2 out=arima_fc;
run;
quit;

 

*example #2;
proc arima data=arima_data
plots(unpack)=all;
identify var=sw(52) nlag=24 scan esacf stationarity=(adf=(0,1,2,3,4));
estimate p=1 q=1;
forecast lead=21 id=t2 out=arima_fc;
run;
quit;

 

*example #3;
proc arima data=arima_data
plots(only)=(residual(smooth) forecast(forecasts));
identify var=sw(52) nlag=24 scan esacf stationarity=(adf=(0,1,2,3,4));
estimate p=1 q=1;
forecast lead=21 id=t2 out=arima_fc;
run;
quit;

 

Log Results same for each piece of code above:

NOTE: The data set WORK.ARIMA_FC has 230 observations and 7 variables.
NOTE: The PROCEDURE ARIMA printed pages 57-62.
NOTE: PROCEDURE ARIMA used (Total process time):
real time 0.08 seconds
cpu time 0.01 seconds

 

Thanks again,

Kyle

Ask a Question
Discussion stats
  • 2 replies
  • 298 views
  • 0 likes
  • 2 in conversation