BookmarkSubscribeRSS Feed
Toni2
Lapis Lazuli | Level 10

below is my ADF test for regression residuals. I use alpha=5%

My interpretation is : my residuals are non-stationary as my model does not take into account the 4 lags suggested by ADF. In other words, my residuals would be stationary only if i take in consideration the 4 lags in the model

Is this correct?


Lag 4 , ADF = -2.922, p-value = 0.0428

 

/* Perform the ADF test on the residuals with 4 lags */
proc autoreg data=residuals;
   model resid / adf=(noint) nlag=4;
run;
1 REPLY 1
SASCom1
SAS Employee

Hi @Toni2 

 

I am afraid I do not follow the logic in your statement: "my residuals are non-stationary as my model does not take into account the 4 lags suggested by ADF. In other words, my residuals would be stationary only if i take in consideration the 4 lags in the model.'

 

When you perform ADF stationarity test on a series, you need to make the decision on the number of lags to be included in the test. Once you have made the decision on the number of lags, you can request the ADF test with the requested number of lags using ADF = (number ) option. For example, if you decide you should include 4 lags in the ADF test, then you specify stationarity = (adf=(4)) option in the MODEL statement. If you do not specify ADF = ( number), then by default, PROC AUTOREG perform the test using 0 lag.

 

The null hypothesis for the ADF test is unit root, so you reject the null hypothesis with small p values. You look at the row corresponding to the model you choose, and the number of lags you decided, and reject the null hypothesis for small p values, and do not reject the null of unit root for large p values.

 

The following paper by Dr. David Dickey provides helpful information on various issues regarding stationarity in time series which may be helpful to you:

 

https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/192-30.pdf

 

I hope this helps.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 731 views
  • 0 likes
  • 2 in conversation