URADF vs. ADFAUTOSELECT

Questions and discussions on Time Series Analysis
raphael
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

URADF vs. ADFAUTOSELECT

Unread post by raphael »

Hi, I was wondering when and why one should use one of these procedures instead of the other.
Thanks a lot,
Raphael
raphael
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: URADF vs. ADFAUTOSELECT

Unread post by raphael »

OK so it seems ADFAUTOSELECT is the more recent one. My next question then is on the choice of information criterion. I guess it depends on the type the variable we are looking at. With the variables I am using, the different criteria yield very different lag lengths, eg. 2 (BIC) vs 12 (AIC). Any book / reference paper on this ?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by TomDoan »

@ADFAUTOSELECT is the procedure that we wrote and maintain. @URADF is older and isn't being maintained. BTW, our @DFUNIT is more similar in design to @URADF than is @ADFAUTOSELECT.

If you're interested in a relatively small number of tests (that is, you're just doing a series or two), the main question is whether it matters. Do you reach the same conclusion regardless of method used for selecting lags? When you can do it, a lag sensitivity table may be even a better choice than any automatic procedure. If the conclusion depends upon the number of lags (once you've added enough to roughly whiten the residuals), then the evidence isn't particularly clear.
raphael
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: URADF vs. ADFAUTOSELECT

Unread post by raphael »

Unfortunately I have a long list of variables. Can the lag lengths selected by ADFAUTOSELECT be used in other tests, notably KPSS or PP ?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by TomDoan »

No. In the KPSS and PP tests, the lags are widths of Bartlett windows. In effect, they are lags in a moving average, not in an autoregression like ADF.
raphael
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: URADF vs. ADFAUTOSELECT

Unread post by raphael »

Thanks. By the way, I was reading ADFAUTOSELECT, and I am probably wrong but there seems to be a mistake in the IC formulas. For example, the code is:

compute aic = log(sigsq)+2.0*%nreg/%nobs

but shouldn't it be

compute aic = %nobs*log(sigsq) etc.

cheers
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by TomDoan »

The first formula is the second divided through by %NOBS. Since %NOBS should be the same when comparing two models, the two formulas will give the same rankings. The formula with /T has the (minor) advantage that the values it produces tend to be easier to read, being within a order of magnitude or so of 1.0.
raphael
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: URADF vs. ADFAUTOSELECT

Unread post by raphael »

Cheers. About that sensitivity table, do you mean testing the residuals for serial correlation ? I have 11 variable so this sounds fastidious (I can't even imagine how I could present this in my paper). Isn't there a procedure for KPSS/PP lag length selection ?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by TomDoan »

Again, it only matters if you get qualitatively different results from two lag lengths that pass some form of "whiteness" test (for the ADF). There are some formulas for picking "optimal" bandwidths for Bartlett windows. See Andrews(1991), "Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation," Econometrica, vol. 59(3), 817-58. They're not quite as obvious as the AIC and BIC, since they aren't based upon a regression likelihood function.
raphael
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: URADF vs. ADFAUTOSELECT

Unread post by raphael »

OK, thanks, it looks much too complicated for me. I have one last question on the subject, which concerns DFUNIT.SRC: what is the difference between the options [INTERCEPT]/NOINTERCEPT and TREND/[NOTREND] on one side, vs. DET=NONE/[CONSTANT]/TREND on the other side ?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by TomDoan »

None. The INTERCEPT and TREND options date back to the original DFUNIT procedure. The DET option was added more recently to make it more similar to other similar procedures.
T_FIELD
Posts: 44
Joined: Sat May 15, 2010 8:03 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by T_FIELD »

Dear Dr. Tom Doan,

Could you help me?
I obtained different t-stats between ADFautoselect.src and uradf.src with same option.

Case 1
@ADFAutoSelect(PRINT,DET=TREND,CRIT=AIC) XXX
@uradf(DET=TREND,CRIT=AIC) XXX

Case 2
@ADFAutoSelect(PRINT,CRIT=AIC) XXX
@uradf(CRIT=AIC) XXX

Why?

Yours Sincerely,

T_FIELD
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by TomDoan »

The two procedures use different defaults for the maximum number of lags. Aren't they showing different numbers of lags?

@ADFAUTOSELECT is the procedure that we wrote and maintain. @URADF is older and isn't being maintained.
T_FIELD
Posts: 44
Joined: Sat May 15, 2010 8:03 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by T_FIELD »

Thank you for your prompt reply.

Under ADFautoselect.src, I think we can have the results using various lags.
But none of the value of "adf" in the table (the last column), is equal to the
t-value obtained by uradf.src,as follows.

Do I guess wrong about how to see the table?

Code: Select all

*****************************************************************************************
*********************************ADFautoselect.src**********************************
*****************************************************************************************
Information Criteria for ADF Lag Lengths, Series EPR
Lags AIC      BIC      HQ       MAIC     ADF
   0 -10.137* -10.037* -10.120*  -9.980   -1.766
   1 -10.037   -9.888  -10.012   -9.929   -1.482
   2 -10.001   -9.802   -9.968  -10.102*  -0.717
   3  -9.917   -9.668   -9.875   -9.898   -0.875
   4  -9.817   -9.519   -9.767   -9.889   -0.543
   5  -9.723   -9.375   -9.664   -9.870   -0.316
   6 -10.055   -9.657   -9.987   -9.845   -0.769
   7  -9.953   -9.506   -9.878   -9.721   -0.750
   8  -9.893   -9.396   -9.809  -10.014   -0.270

*****************************************************************************************
**************************************uradf.src****************************************
*****************************************************************************************
****************************************************************
* TESTING THE NULL HYPOTHESIS OF A UNIT ROOT IN EPR           *
*          Using data from 1981:01 to 2008:01                 *
*    Choosing the optimal lag length for the ADF regression   *
*     between 0 and  7  lags.                                 *
*    using the AIC model selection criterion.                 *
****************************************************************

Model Selection Criteria
   Minimum AIC at lag:    1
   Minimum BIC at lag:    0

****************************************************************
* Augmented Dickey-Fuller t-test with 1 lags:      -2.3222    *
*               1%        5%        10%                       *
*             -3.58     -2.93      -2.60                      *
*                                                             *
* Augmented Dickey-Fuller Z-test with 1 lags:      -7.5468    *
*               1%        5%        10%                       *
*            -18.9     -13.3      -10.7                       *
*                                                             *
* Coefficient and T-Statistic on the Constant:                *
*               0.00662        2.0072                         *
*                                                             *
* Joint test of a unit root and no constant:        2.8410    *
*               1%        5%        10%                       *
*              7.06      4.86       3.94                      *
****************************************************************  
Thanking in advance.

T_FIELD
moderator
Site Admin
Posts: 269
Joined: Thu Oct 19, 2006 4:33 pm

Re: URADF vs. ADFAUTOSELECT

Unread post by moderator »

See the updated description of @ADFAUTOSELECT. It should answer your question. BTW, if that's annual data, your maximum lags are way too high. 3 or 4 is the most you should even consider.
Post Reply