<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to save acf and pacf values in arima command? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617432#M19075</link>
    <description>&lt;P&gt;I don't have much experience with remote submissions, but here are a few ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If you can generate the graphs on the server (but just can't see them), perhaps you can save the graphs to a PNG and then pull them back to the client for viewing.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;If you can generate the graphs on the server, you can &lt;A href="https://blogs.sas.com/content/iml/2012/08/01/data-fro-ods-graphics.html" target="_self"&gt;use ODS OUTPUT to save the underlying data object that contains the values in the graphs.&lt;/A&gt; You can then bring that data back to the client and graph it. here's what it looks like locally:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc arima data=datasample2 plots(unpack)=series(acf pacf);
identify var = r nlag = 8 esacf stationarity = (adf= (0,1,2,3,4,5,6,7,8));
         ods select SeriesACFPlot SeriesPACFPlot;
         ods output SeriesACFPlot=ACF SeriesPACFPlot=PACF;
quit;

proc contents varnum short data=ACF;
run;

title "ACF";
proc sgplot data=ACF;
band x=LAGS_SERIES_MAX_NLAGS_ 
     lower=___2__ACFSTD_SERIES_NLAGS_NLAGS_ 
     upper=_2_ACFSTD_SERIES_NLAGS_NLAGS__;
needle x=LAGS_SERIES_MAX_NLAGS_ y=ACF_SERIES_NLAGS_NLAGS_ / lineattrs=(thickness=8);
run;

/* then do same for PACF */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. You can use the OUTCOV= option on the IDENTIFY statement to get the ACF and PACF values in a data set. Unfortunately, you would have to compute the confidence bands by hand (if you want them)&amp;nbsp; The value for PACF at LAG=0 might need to be adjusted. Here's the general idea&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc arima data=datasample2 plots=NONE;
identify var = r nlag = 8 esacf stationarity = (adf= (0,1,2,3,4,5,6,7,8)) 
         outcov=cov;
quit;
title "ACF";
proc sgplot data=cov;
/* band x=lag lower=LOWER upper=UPPER; */
needle x=lag y=corr / lineattrs=(thickness=8);
run;

title "PACF";
proc sgplot data=cov;
/* band x=lag lower=LOWER upper=UPPER; */
needle x=lag y=partcorr / lineattrs=(thickness=8);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 13:42:50 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-01-15T13:42:50Z</dc:date>
    <item>
      <title>How to save acf and pacf values in arima command?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617399#M19070</link>
      <description>&lt;P&gt;We are running the following code on a SAS server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;rsubmit;&lt;BR /&gt;proc arima data=datasample2 plots = all;&lt;BR /&gt;identify var = r nlag = 8 esacf stationarity = (adf= (0,1,2,3,4,5,6,7,8));&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which for some reason does not produce any plots.. Is there some way to save the values of the acf and pacf so that we can plot them locally in either SAS or Excel? (running the code locally is not an option since ETS is only installed on the server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 10:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617399#M19070</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2020-01-15T10:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to save acf and pacf values in arima command?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617432#M19075</link>
      <description>&lt;P&gt;I don't have much experience with remote submissions, but here are a few ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If you can generate the graphs on the server (but just can't see them), perhaps you can save the graphs to a PNG and then pull them back to the client for viewing.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;If you can generate the graphs on the server, you can &lt;A href="https://blogs.sas.com/content/iml/2012/08/01/data-fro-ods-graphics.html" target="_self"&gt;use ODS OUTPUT to save the underlying data object that contains the values in the graphs.&lt;/A&gt; You can then bring that data back to the client and graph it. here's what it looks like locally:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc arima data=datasample2 plots(unpack)=series(acf pacf);
identify var = r nlag = 8 esacf stationarity = (adf= (0,1,2,3,4,5,6,7,8));
         ods select SeriesACFPlot SeriesPACFPlot;
         ods output SeriesACFPlot=ACF SeriesPACFPlot=PACF;
quit;

proc contents varnum short data=ACF;
run;

title "ACF";
proc sgplot data=ACF;
band x=LAGS_SERIES_MAX_NLAGS_ 
     lower=___2__ACFSTD_SERIES_NLAGS_NLAGS_ 
     upper=_2_ACFSTD_SERIES_NLAGS_NLAGS__;
needle x=LAGS_SERIES_MAX_NLAGS_ y=ACF_SERIES_NLAGS_NLAGS_ / lineattrs=(thickness=8);
run;

/* then do same for PACF */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. You can use the OUTCOV= option on the IDENTIFY statement to get the ACF and PACF values in a data set. Unfortunately, you would have to compute the confidence bands by hand (if you want them)&amp;nbsp; The value for PACF at LAG=0 might need to be adjusted. Here's the general idea&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc arima data=datasample2 plots=NONE;
identify var = r nlag = 8 esacf stationarity = (adf= (0,1,2,3,4,5,6,7,8)) 
         outcov=cov;
quit;
title "ACF";
proc sgplot data=cov;
/* band x=lag lower=LOWER upper=UPPER; */
needle x=lag y=corr / lineattrs=(thickness=8);
run;

title "PACF";
proc sgplot data=cov;
/* band x=lag lower=LOWER upper=UPPER; */
needle x=lag y=partcorr / lineattrs=(thickness=8);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 13:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617432#M19075</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-15T13:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to save acf and pacf values in arima command?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617515#M19079</link>
      <description>&lt;P&gt;Do you have a place you can upload/download files on your server? If so, you could pipe the output to a PDF/HTML file and download it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300616"&gt;@adrfinance&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;We are running the following code on a SAS server:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;proc arima data=datasample2 plots = all;&lt;BR /&gt;identify var = r nlag = 8 esacf stationarity = (adf= (0,1,2,3,4,5,6,7,8));&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which for some reason does not produce any plots.. Is there some way to save the values of the acf and pacf so that we can plot them locally in either SAS or Excel? (running the code locally is not an option since ETS is only installed on the server)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 16:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-save-acf-and-pacf-values-in-arima-command/m-p/617515#M19079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-15T16:37:39Z</dc:date>
    </item>
  </channel>
</rss>

