URADF vs. ADFAUTOSELECT
URADF vs. ADFAUTOSELECT
Hi, I was wondering when and why one should use one of these procedures instead of the other.
Thanks a lot,
Raphael
Thanks a lot,
Raphael
Re: URADF vs. ADFAUTOSELECT
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 ?
Re: URADF vs. ADFAUTOSELECT
@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.
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.
Re: URADF vs. ADFAUTOSELECT
Unfortunately I have a long list of variables. Can the lag lengths selected by ADFAUTOSELECT be used in other tests, notably KPSS or PP ?
Re: URADF vs. ADFAUTOSELECT
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.
Re: URADF vs. ADFAUTOSELECT
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
compute aic = log(sigsq)+2.0*%nreg/%nobs
but shouldn't it be
compute aic = %nobs*log(sigsq) etc.
cheers
Re: URADF vs. ADFAUTOSELECT
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.
Re: URADF vs. ADFAUTOSELECT
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 ?
Re: URADF vs. ADFAUTOSELECT
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.
Re: URADF vs. ADFAUTOSELECT
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 ?
Re: URADF vs. ADFAUTOSELECT
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.
Re: URADF vs. ADFAUTOSELECT
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
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
Re: URADF vs. ADFAUTOSELECT
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.
@ADFAUTOSELECT is the procedure that we wrote and maintain. @URADF is older and isn't being maintained.
Re: URADF vs. ADFAUTOSELECT
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?
Thanking in advance.
T_FIELD
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 *
****************************************************************
T_FIELD
Re: URADF vs. ADFAUTOSELECT
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.