<?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: Augmented Dickey Fuller uses AIC or BIC in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Augmented-Dickey-Fuller-uses-AIC-or-BIC/m-p/928378#M4824</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465797"&gt;@daisywl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you specify ADF option, the output in PROC ARIMA&amp;nbsp; contains p values for the ADF test, as in the columns 'Pr&amp;lt;Rho', 'Pr&amp;lt;Tau', 'Pr &amp;gt; F'. If by saying "&lt;SPAN&gt;how to set the AIC/BIC option for lag length", you are asking if there is an option in PROC ARIMA to select the number of augmenting lags based on AIC/BIC in performing the ADF stationarity test, then PROC ARIMA does not provide an option to select the number of augmenting lags using AIC/BIC method, or using any other method. You will need to determine the number of augmenting lags yourself when performing the ADF test in PROC ARIMA.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are different ways to select number of augmenting lags in ADF test. Dr. David Dickey illustrates one approach to select the number of augmenting lags in performing ADF test in the following Global Forum paper, which uses F test in PROC REG to test for significance on the coefficients associated with the lags in the regression.&amp;nbsp;In particular, this approach is discussed in section 7 of the paper:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/192-30.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/192-30.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another SAS/ETS procedure, PROC AUTOREG supports some additional stationarity tests(in addition to the ADF test), e.g., ERS, NP stationarity tests, which use some information criteria(SBC for ERS test and modified AIC for the NP test) to determine the number of lags to be included in the regression. You can specify ERS&amp;nbsp; option, NP&amp;nbsp; option in the MODEL statement in PROC AUTOREG to requests these tests:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_050/etsug/etsug_autoreg_syntax06.htm#etsug_autoreg001978" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_050/etsug/etsug_autoreg_syntax06.htm#etsug_autoreg001978&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then scroll down to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(ERS)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(ERS=(&lt;SPAN class=" aa-argument"&gt;value&lt;/SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(NP)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(NP=(&lt;SPAN class=" aa-argument"&gt;value&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where 'value' is the maximum lag length to be considered in the lag order selection in the stationarity test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 20:33:21 GMT</pubDate>
    <dc:creator>SASCom1</dc:creator>
    <dc:date>2024-05-14T20:33:21Z</dc:date>
    <item>
      <title>Augmented Dickey Fuller uses AIC or BIC</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Augmented-Dickey-Fuller-uses-AIC-or-BIC/m-p/928084#M4823</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I obtain the p-value of the ADF test, which uses AIC or BIC to determine the lag for residuals, in order to test the stationarity of the residuals of a linear regression model?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have tried&amp;nbsp;&lt;STRONG&gt;proc arima&lt;/STRONG&gt; but don’t know how to set the AIC/BIC option for lag length.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The input data and my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data df;
input month dep ind1 ind2 ind3;
cards;
1 -4.66344 0.5337595 1.533904 -0.1824561
2 -4.27203 0.5371667 1.638746 -0.2840759
3 -4.31303 0.5187737 1.708084 -0.208212
4 -3.46126 0.501581 1.773411 0.7434088
5 -3.10906 0.5024615 -0.7010086 0.4447428
6 -2.83321 0.50575 0.7289928 0.2619768
7 -2.74544 0.4943883 0.7419567 0.7679318
8 -3.30505 0.4825768 0.7544792 0.273685
9 -3.28185 0.468799 0.9924411 -0.1544852
10 -3.54578 0.4705212 1.133435 0.6179188
;
run;

proc reg 
	data=df;
	model dep = ind1	ind2	ind3 ; 
	OUTPUT OUT=model_output_c predicted= pred residual=resid;
run;

proc arima data=model_output_c;
  identify var=resid STATIONARITY=(ADF) ;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 07:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Augmented-Dickey-Fuller-uses-AIC-or-BIC/m-p/928084#M4823</guid>
      <dc:creator>daisywl</dc:creator>
      <dc:date>2024-05-13T07:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Augmented Dickey Fuller uses AIC or BIC</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Augmented-Dickey-Fuller-uses-AIC-or-BIC/m-p/928378#M4824</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465797"&gt;@daisywl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you specify ADF option, the output in PROC ARIMA&amp;nbsp; contains p values for the ADF test, as in the columns 'Pr&amp;lt;Rho', 'Pr&amp;lt;Tau', 'Pr &amp;gt; F'. If by saying "&lt;SPAN&gt;how to set the AIC/BIC option for lag length", you are asking if there is an option in PROC ARIMA to select the number of augmenting lags based on AIC/BIC in performing the ADF stationarity test, then PROC ARIMA does not provide an option to select the number of augmenting lags using AIC/BIC method, or using any other method. You will need to determine the number of augmenting lags yourself when performing the ADF test in PROC ARIMA.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are different ways to select number of augmenting lags in ADF test. Dr. David Dickey illustrates one approach to select the number of augmenting lags in performing ADF test in the following Global Forum paper, which uses F test in PROC REG to test for significance on the coefficients associated with the lags in the regression.&amp;nbsp;In particular, this approach is discussed in section 7 of the paper:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/192-30.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/192-30.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another SAS/ETS procedure, PROC AUTOREG supports some additional stationarity tests(in addition to the ADF test), e.g., ERS, NP stationarity tests, which use some information criteria(SBC for ERS test and modified AIC for the NP test) to determine the number of lags to be included in the regression. You can specify ERS&amp;nbsp; option, NP&amp;nbsp; option in the MODEL statement in PROC AUTOREG to requests these tests:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_050/etsug/etsug_autoreg_syntax06.htm#etsug_autoreg001978" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_050/etsug/etsug_autoreg_syntax06.htm#etsug_autoreg001978&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then scroll down to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(ERS)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(ERS=(&lt;SPAN class=" aa-argument"&gt;value&lt;/SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(NP)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=" aa-term "&gt;STATIONARITY=(NP=(&lt;SPAN class=" aa-argument"&gt;value&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where 'value' is the maximum lag length to be considered in the lag order selection in the stationarity test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 20:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Augmented-Dickey-Fuller-uses-AIC-or-BIC/m-p/928378#M4824</guid>
      <dc:creator>SASCom1</dc:creator>
      <dc:date>2024-05-14T20:33:21Z</dc:date>
    </item>
  </channel>
</rss>

