<?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 Test with AIC and BIC option in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927624#M46164</link>
    <description>Yes, as SteveDenham said it is about Forecasting,&lt;BR /&gt;Better post it at Forecasting Fourm:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PROC ARIMA or PROC AUTOREG could do it .</description>
    <pubDate>Thu, 09 May 2024 02:25:53 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-05-09T02:25:53Z</dc:date>
    <item>
      <title>Augmented Dickey Fuller Test with AIC and BIC option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927490#M46157</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;The input data and model that I have:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data df;
input dep  ind1	ind2	ind3;
cards;
-4.66344 0.5337595 1.533904 -0.1824561
-4.27203 0.5371667 1.638746 -0.2840759
-4.31303 0.5187737 1.708084 -0.208212
-3.46126 0.501581 1.773411 0.7434088
-3.10906 0.5024615 -0.7010086 0.4447428
-2.83321 0.50575 0.7289928 0.2619768
-2.74544 0.4943883 0.7419567 0.7679318
-3.30505 0.4825768 0.7544792 0.273685
-3.28185 0.468799 0.9924411 -0.1544852
-3.54578 0.4705212 1.133435 0.6179188
;
run;

proc reg 
	data=df;
	model dep = ind1	ind2	ind3 ; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 09:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927490#M46157</guid>
      <dc:creator>daisywl</dc:creator>
      <dc:date>2024-05-08T09:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Augmented Dickey Fuller Test with AIC and BIC option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927576#M46161</link>
      <description>&lt;P&gt;Sometimes Mr. Google and Ms. Wikipedia can lead you to an interesting result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In&amp;nbsp;&lt;/SPAN&gt;&lt;A title="SAS (software)" href="https://en.wikipedia.org/wiki/SAS_(software)" target="_blank"&gt;SAS&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;PROC ARIMA&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;can perform ADF tests&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, do you have access to SAS/ETS? If so, this is not a difficult request. However, if your data are not from a time series (or something resembling a time series), I wonder if the effort to come up with an approximate ADF test is worth it, considering that many of the assumptions for the test are not being met. If you are looking for a test for autocorrelation of the residuals in PROC REG, then you can get the Durbin-Watson statistic, but that really only tests for a lag of 1, and requires that the response variable be ordered in some sense (time, location, etc.).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 18:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927576#M46161</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-05-08T18:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Augmented Dickey Fuller Test with AIC and BIC option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927624#M46164</link>
      <description>Yes, as SteveDenham said it is about Forecasting,&lt;BR /&gt;Better post it at Forecasting Fourm:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PROC ARIMA or PROC AUTOREG could do it .</description>
      <pubDate>Thu, 09 May 2024 02:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927624#M46164</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-05-09T02:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Augmented Dickey Fuller Test with AIC and BIC option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927633#M46165</link>
      <description>&lt;P&gt;Thank you for your responses.&lt;/P&gt;&lt;P&gt;My data is actually monthly, but I&amp;nbsp;have dropped&amp;nbsp;the ‘Month’ column. I&amp;nbsp;have tried&amp;nbsp;the ADF test as a secondary test when&amp;nbsp;validating&amp;nbsp;the model.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have tried&amp;nbsp;proc arima but don’t know how to set the AIC/BIC option for lag length.&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;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;</description>
      <pubDate>Thu, 09 May 2024 06:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Augmented-Dickey-Fuller-Test-with-AIC-and-BIC-option/m-p/927633#M46165</guid>
      <dc:creator>daisywl</dc:creator>
      <dc:date>2024-05-09T06:58:41Z</dc:date>
    </item>
  </channel>
</rss>

