<?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: ACF using Proc ARIMA in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/679688#M3940</link>
    <description>If I was right . from left to right should be&lt;BR /&gt;&lt;BR /&gt;ToLage Autocorrlation&lt;BR /&gt;        6   Lag1 Lag2 .......Lag6</description>
    <pubDate>Thu, 27 Aug 2020 12:02:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-08-27T12:02:44Z</dc:date>
    <item>
      <title>ACF using Proc ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/679613#M3939</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to find the autocorrelation of a time series variable for different orders (e.g., AC(1), AC(5), AC(20)), so I use the following code:&lt;/P&gt;
&lt;P&gt;proc arima data=mydata plot(only)=(series(corr)) ;&lt;BR /&gt;identify var=tsvar nlag=20;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;I have two questions regarding the following table in the output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavyJones_0-1598481207100.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48690i565E6D9E1264C38A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavyJones_0-1598481207100.png" alt="DavyJones_0-1598481207100.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1. How could I determine the order of autocorrelation, so instead of 6,12, etc, it'll give me the result for 1,5, etc.&lt;/P&gt;
&lt;P&gt;2. Under Autocorrelations, there are six columns. SAS manual says "&lt;SPAN&gt;The autocorrelations are checked in &lt;/SPAN&gt;&lt;SPAN class="highlight selected"&gt;groups of&lt;/SPAN&gt;&lt;SPAN&gt; six". what does it mean in groups of six?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 22:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/679613#M3939</guid>
      <dc:creator>DavyJones</dc:creator>
      <dc:date>2020-08-26T22:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: ACF using Proc ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/679688#M3940</link>
      <description>If I was right . from left to right should be&lt;BR /&gt;&lt;BR /&gt;ToLage Autocorrlation&lt;BR /&gt;        6   Lag1 Lag2 .......Lag6</description>
      <pubDate>Thu, 27 Aug 2020 12:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/679688#M3940</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-27T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: ACF using Proc ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/680034#M3941</link>
      <description>&lt;P&gt;Thanks! Does it mean that when To Lag=12, those six columns are going to be lag7, lag8, ..., lag12?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/680034#M3941</guid>
      <dc:creator>DavyJones</dc:creator>
      <dc:date>2020-08-28T14:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: ACF using Proc ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/680195#M3944</link>
      <description>Yes . I think so. &lt;BR /&gt;Hope some experts to confirm it.&lt;BR /&gt;Or check SAS Documentation of proc arima .</description>
      <pubDate>Sat, 29 Aug 2020 12:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/680195#M3944</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-29T12:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: ACF using Proc ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/680463#M3946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161202"&gt;@DavyJones&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;'s explanation and your understanding are correct.&amp;nbsp; Based on the table you provided, the values in the "Autocorrelations" portion of the "Autocorrelation Check for White Noise" table contain the autocorrelation coefficients at the individual lags.&amp;nbsp; For example, the first row in the table contains the autocorrelation coefficients at lag1, lag2, ...lag6.&amp;nbsp; In other words, the fifth value in that row, 0.427, is the autocorrelation coefficient at lag 5.&amp;nbsp; The second row contains the autocorrelation coefficients for lags 7, 8, 9,...12.&amp;nbsp; The third value in the second row, 0.375, is the autocorrelation coefficient at lag 9.&amp;nbsp; If you add the OUTCOV= option to the IDENTIFY statement, you can create a data set with the autocorrelations in a format that you might prefer.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc arima data=mydata plot(only)=(series(corr)) ;
identify var=tsvar nlag=20 outcov=mycorr;
run;

proc print data=mycorr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regarding your second question, the Chi-Square statistic that is printed on each row is the Ljung-Box statistic.&amp;nbsp; It is used to test the null hypothesis that the series is white noise (ie. no autocorrelation).&amp;nbsp; These test statistics are computed by using sets of autocorrelation coefficients, therefore, the first Chi-Square statistic and associated DF and Pr&amp;gt;ChiSq values are based on the set of the first 6 autocorrelations.&amp;nbsp; The Chi-Square statistic and its associated DF and p-value in the second row are based on the set of the first 12 autocorrelations, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to either obtain a test of significance on each individual autocorrelation coefficient or compute the Ljung-Box test statistic using autocorrelations up through lag "p", then you can use the TIMESERIES procedure.&amp;nbsp; Please see the following code for an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc timeseries data=mydata outcorr=corr plots=corr;
  var tsvar;
  corr lag n acf acfprob wn wnprob /nlag=30;
run;

proc print data=corr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For additional details on the calculations performed by the CORR statement, please see the following documentation link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_timeseries_details08.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_timeseries_details08.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/ACF-using-Proc-ARIMA/m-p/680463#M3946</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2020-08-31T15:51:24Z</dc:date>
    </item>
  </channel>
</rss>

