Hi All - relatively new SAS user here.
I have a macro that uses a do loop to iterate the ARIMA procedure, making certain adjustments on each iteration based on the results of the proc's outlier detection feature. With each iteration, the macro prints only the outlier detection summary and details, suppressing all the other tables and plots. This is achieved by using "noprint" on the "identify" and "estimate" statements:
proc arima data=MyData;
identify var=indpro(1) noprint;
estimate p=1 q=2 method=ML noprint;
outlier maxnum=30 alpha=0.005;
run;
This works well, however I would also like to include a plot of the white noise probabilities in the output of each iteration. This is one of the standard plots produced by the ARIMA procedure, and I can isolate the plot in the output by specifying "plots(only)=residual(WN)":
proc arima data=MyData plots(only)=residual(WN);
identify var=indpro(1) noprint;
estimate p=1 q=2 method=ML;
outlier maxnum=30 alpha=0.005;
run;
The problem with this is that it will only show the plot in question if I remove the "noprint" statement from the "estimate" line. Once I do so, the plot is included in the output as desired, however all the other standard tables produced by the estimate statement are also printed, which I do not want.
Is there a way to isolate the white noise plot and print it in the output without all the other standard tables produced by the estimate statement? I ran ods trace to identify the name of the specific plot I'm looking for, in case that helps:
Name: ResidualWNPlot
Label: Residual White Noise Plot
Template: ets.arima.Graphics.WNPlot
Path: Arima.Estimate.ResidualWNPlot
Any suggestions would be appreciated.
Perfect. ODS SELECT was exactly what I needed. Thanks Cynthia!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.