<?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: adf test in proc arima vs proc autoreg in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/adf-test-in-proc-arima-vs-proc-autoreg/m-p/719975#M4053</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different default settings were chosen to be used for the number of augmenting lags for the ADF stationarity tests computed by PROCs ARIMA and AUTOREG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, PROC ARIMA computes the stationarity tests for 0, 1 and 2 augmenting lags.&amp;nbsp; This is noted in the initial paragraph of the STATIONARITY= option documentation shown in the excerpt below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="app" class="app h-full ng-scope" aria-hidden="false"&gt;
&lt;DIV class="app-wrapper ng-scope"&gt;
&lt;DIV id="app-bottom-wrapper" class="app-b-wrapper"&gt;
&lt;DIV id="document-panel" class="pos-r h-full" aria-hidden="false"&gt;
&lt;DIV class="overflow-h ng-scope"&gt;
&lt;DIV id="document" class="document scrollable ng-scope" role="main"&gt;
&lt;DIV id="pageContent" class="document-body wrapper" lang="en" tabindex="0" aria-live="polite"&gt;
&lt;DIV class="xisDoc-refProc ng-scope"&gt;
&lt;DIV id="etsug.arima.ariidentifystmt" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY= &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;performs stationarity tests. Stationarity tests can be used to determine whether differencing terms should be included in the model specification. In each stationarity test, the autoregressive orders can be specified by a range, &lt;SPAN&gt;&lt;EM&gt;test= ar_max&lt;/EM&gt;&lt;/SPAN&gt; &lt;SPAN class="aa-mathinline"&gt;&lt;SPAN class="aa-math" title="Click image for alternative format. Opens in a new window or tab."&gt;&lt;!--stopindex--&gt;&lt;!--googleoff: all--&gt;&lt;!--startindex--&gt;&lt;!--googleon: all--&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, or as a list of values, &lt;SPAN&gt;&lt;EM&gt;test=(ar1,...arn)&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="aa-mathinline"&gt;&lt;SPAN class="aa-math" title="Click image for alternative format. Opens in a new window or tab."&gt;&lt;!--stopindex--&gt;&lt;!--googleoff: all--&gt;&lt;!--startindex--&gt;&lt;!--googleon: all--&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, where &lt;SPAN&gt;&lt;EM&gt;test&lt;/EM&gt;&lt;/SPAN&gt; is ADF, PP, or RW. The default is (0,1,2).&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;PROC AUTOREG, on the other hand, assumes that the specified syntax for the STATIONARITY= option results in models for the ADF test, where the disturbances are distributed as white noise.&amp;nbsp; Therefore, a specification of STATIONARITY=(ADF) assumes that the residuals from the &lt;EM&gt;standard&lt;/EM&gt; Dickey-Fuller test (without any augmenting lags) are white noise.&amp;nbsp; This assumption is noted in the following excerpt from the PROC AUTOREG documentation, however, the default behavior could be more clearly described:&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="app" class="app h-full ng-scope" aria-hidden="false"&gt;
&lt;DIV class="app-wrapper ng-scope"&gt;
&lt;DIV id="app-bottom-wrapper" class="app-b-wrapper"&gt;
&lt;DIV id="document-panel" class="pos-r h-full" aria-hidden="false"&gt;
&lt;DIV class="overflow-h ng-scope"&gt;
&lt;DIV id="document" class="document scrollable ng-scope" role="main"&gt;
&lt;DIV id="pageContent" class="document-body wrapper" lang="en" tabindex="0" aria-live="polite"&gt;
&lt;DIV class="xisDoc-refProc ng-scope"&gt;
&lt;DIV id="etsug.autoreg.autmodelstmt" class="aa-section"&gt;
&lt;DIV id="etsug_autoreg001715" class="aa-section" tabindex="-1"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DD&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(ADF) &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt; STATIONARITY=(ADF=(&lt;SPAN class=" aa-argument"&gt;value …value&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;produces the augmented Dickey-Fuller unit root test (Dickey and Fuller &lt;A tabindex="0" href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_009&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_autoreg_references.htm&amp;amp;docsetVersion=v_003&amp;amp;locale=en#etsug_autoregdick_d79" data-docset-version="v_003" data-docset-id="etsug" data-original-href="etsug_autoreg_references.htm#etsug_autoregdick_d79"&gt;1979&lt;/A&gt;). &lt;A id="etsug.autoreg.autoreg_a0000000113" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A id="etsug.autoreg.autoreg_a0000000114" class="indexterm" target="_blank"&gt;&lt;/A&gt; As in the Phillips-Perron test, three regression models can be specified for the null hypothesis for the augmented Dickey-Fuller test (zero mean, single mean, and trend). These models assume that the disturbances are distributed as white noise. The augmented Dickey-Fuller test can account for the serial correlation between the disturbances in some way.&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;For more details on the stationarity tests fit in PROC AUTOREG, please see the following link:&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_autoreg_details27.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en#etsug.autoreg.stationarytsts" target="_self"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_autoreg_details27.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en#etsug.autoreg.stationarytsts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;I hope this helps explain the difference in the results you obtained when running the two procedures.&amp;nbsp; I will request that the documentation for PROC AUTOREG be updated to further clarify the default behavior for this option.&amp;nbsp; Thank you for your feedback!&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 17:31:02 GMT</pubDate>
    <dc:creator>dw_sas</dc:creator>
    <dc:date>2021-02-17T17:31:02Z</dc:date>
    <item>
      <title>adf test in proc arima vs proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/adf-test-in-proc-arima-vs-proc-autoreg/m-p/719756#M4052</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I have some conceptual/technical questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I do ADF test in proc arima, and proc autoreg (using default option of not setting any lags) I get&amp;nbsp; following results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 ' Staionarity Test ADF No Lag Specified';&lt;BR /&gt;proc arima data= adf_test;&lt;BR /&gt;identify var=value stationarity=(dickey); &lt;BR /&gt;run;&lt;BR /&gt;title1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubshams_0-1613516388542.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54818i6DF480417648AD04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubshams_0-1613516388542.png" alt="ubshams_0-1613516388542.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I do adf test in proc autoreg I get results upto 0 lags only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 ' Staionarity Test proc autoreg ADF No Lag Specified';&lt;BR /&gt;proc autoreg data = adf_test;&lt;BR /&gt;model value = / stationarity =(adf);&lt;BR /&gt;run;&lt;BR /&gt;title1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubshams_1-1613516610903.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54819iC27C075956CAD9E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubshams_1-1613516610903.png" alt="ubshams_1-1613516610903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;1. Why the discrepancy in how many lags are shown (albeit the numbers do match for "0 lags" in both cases).&lt;/P&gt;
&lt;P&gt;2. Is default lags always 2 for proc arima adf test and 0 lags for proc autoreg adf test? Couldn't tell from the documentations&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 23:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/adf-test-in-proc-arima-vs-proc-autoreg/m-p/719756#M4052</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2021-02-16T23:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: adf test in proc arima vs proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/adf-test-in-proc-arima-vs-proc-autoreg/m-p/719975#M4053</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different default settings were chosen to be used for the number of augmenting lags for the ADF stationarity tests computed by PROCs ARIMA and AUTOREG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, PROC ARIMA computes the stationarity tests for 0, 1 and 2 augmenting lags.&amp;nbsp; This is noted in the initial paragraph of the STATIONARITY= option documentation shown in the excerpt below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="app" class="app h-full ng-scope" aria-hidden="false"&gt;
&lt;DIV class="app-wrapper ng-scope"&gt;
&lt;DIV id="app-bottom-wrapper" class="app-b-wrapper"&gt;
&lt;DIV id="document-panel" class="pos-r h-full" aria-hidden="false"&gt;
&lt;DIV class="overflow-h ng-scope"&gt;
&lt;DIV id="document" class="document scrollable ng-scope" role="main"&gt;
&lt;DIV id="pageContent" class="document-body wrapper" lang="en" tabindex="0" aria-live="polite"&gt;
&lt;DIV class="xisDoc-refProc ng-scope"&gt;
&lt;DIV id="etsug.arima.ariidentifystmt" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY= &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;performs stationarity tests. Stationarity tests can be used to determine whether differencing terms should be included in the model specification. In each stationarity test, the autoregressive orders can be specified by a range, &lt;SPAN&gt;&lt;EM&gt;test= ar_max&lt;/EM&gt;&lt;/SPAN&gt; &lt;SPAN class="aa-mathinline"&gt;&lt;SPAN class="aa-math" title="Click image for alternative format. Opens in a new window or tab."&gt;&lt;!--stopindex--&gt;&lt;!--googleoff: all--&gt;&lt;!--startindex--&gt;&lt;!--googleon: all--&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, or as a list of values, &lt;SPAN&gt;&lt;EM&gt;test=(ar1,...arn)&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="aa-mathinline"&gt;&lt;SPAN class="aa-math" title="Click image for alternative format. Opens in a new window or tab."&gt;&lt;!--stopindex--&gt;&lt;!--googleoff: all--&gt;&lt;!--startindex--&gt;&lt;!--googleon: all--&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, where &lt;SPAN&gt;&lt;EM&gt;test&lt;/EM&gt;&lt;/SPAN&gt; is ADF, PP, or RW. The default is (0,1,2).&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;PROC AUTOREG, on the other hand, assumes that the specified syntax for the STATIONARITY= option results in models for the ADF test, where the disturbances are distributed as white noise.&amp;nbsp; Therefore, a specification of STATIONARITY=(ADF) assumes that the residuals from the &lt;EM&gt;standard&lt;/EM&gt; Dickey-Fuller test (without any augmenting lags) are white noise.&amp;nbsp; This assumption is noted in the following excerpt from the PROC AUTOREG documentation, however, the default behavior could be more clearly described:&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="app" class="app h-full ng-scope" aria-hidden="false"&gt;
&lt;DIV class="app-wrapper ng-scope"&gt;
&lt;DIV id="app-bottom-wrapper" class="app-b-wrapper"&gt;
&lt;DIV id="document-panel" class="pos-r h-full" aria-hidden="false"&gt;
&lt;DIV class="overflow-h ng-scope"&gt;
&lt;DIV id="document" class="document scrollable ng-scope" role="main"&gt;
&lt;DIV id="pageContent" class="document-body wrapper" lang="en" tabindex="0" aria-live="polite"&gt;
&lt;DIV class="xisDoc-refProc ng-scope"&gt;
&lt;DIV id="etsug.autoreg.autmodelstmt" class="aa-section"&gt;
&lt;DIV id="etsug_autoreg001715" class="aa-section" tabindex="-1"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DD&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(ADF) &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt; STATIONARITY=(ADF=(&lt;SPAN class=" aa-argument"&gt;value …value&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;produces the augmented Dickey-Fuller unit root test (Dickey and Fuller &lt;A tabindex="0" href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_009&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_autoreg_references.htm&amp;amp;docsetVersion=v_003&amp;amp;locale=en#etsug_autoregdick_d79" data-docset-version="v_003" data-docset-id="etsug" data-original-href="etsug_autoreg_references.htm#etsug_autoregdick_d79"&gt;1979&lt;/A&gt;). &lt;A id="etsug.autoreg.autoreg_a0000000113" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A id="etsug.autoreg.autoreg_a0000000114" class="indexterm" target="_blank"&gt;&lt;/A&gt; As in the Phillips-Perron test, three regression models can be specified for the null hypothesis for the augmented Dickey-Fuller test (zero mean, single mean, and trend). These models assume that the disturbances are distributed as white noise. The augmented Dickey-Fuller test can account for the serial correlation between the disturbances in some way.&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;For more details on the stationarity tests fit in PROC AUTOREG, please see the following link:&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_autoreg_details27.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en#etsug.autoreg.stationarytsts" target="_self"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_autoreg_details27.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en#etsug.autoreg.stationarytsts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;I hope this helps explain the difference in the results you obtained when running the two procedures.&amp;nbsp; I will request that the documentation for PROC AUTOREG be updated to further clarify the default behavior for this option.&amp;nbsp; Thank you for your feedback!&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/adf-test-in-proc-arima-vs-proc-autoreg/m-p/719975#M4053</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2021-02-17T17:31:02Z</dc:date>
    </item>
  </channel>
</rss>

