Hello all,
When running Augmented Dickey Fuller tests using the "dfuller" command, Stata reports standard t-distribution critical values when the option "drift" is used, rather than the Interpolated Dickey Fuller critical values. When running the ADF test with either option "trend" or the default, the correct Interpolated Dickey Fuller values are reported.
Code to replicate this is below:
"""
clear all
use http://www.stata-press.com/data/r13/air2
dfuller air, lags(3) trend
dfuller air, lags(3) drift
"""
Using the first test (with trend) I obtain critical values of -4.027, -3.445, -3.145 at the 1%, 5% and 10% levels respectively, which correspond to the correct DF values.
Using the second test (with drift), I obtain critical values of -2.354, -1.656 and -1.288 at the 1%, 5% and 10% levels respectively, which do not correspond to the correct DF values, but instead are the critical values from the t-distribution with 140 observations.
The t-distribution critical values are obviously not valid for the Dickey Fuller test and this appears to be a error in the "dfuller" code.
I am running Stata 15.1 and have recently updated the system.
Any advice on why this is occurring, or confirmation that this is indeed a bug with the "dfuller" command would be highly appreciated.
Thanks,
James
When running Augmented Dickey Fuller tests using the "dfuller" command, Stata reports standard t-distribution critical values when the option "drift" is used, rather than the Interpolated Dickey Fuller critical values. When running the ADF test with either option "trend" or the default, the correct Interpolated Dickey Fuller values are reported.
Code to replicate this is below:
"""
clear all
use http://www.stata-press.com/data/r13/air2
dfuller air, lags(3) trend
dfuller air, lags(3) drift
"""
Using the first test (with trend) I obtain critical values of -4.027, -3.445, -3.145 at the 1%, 5% and 10% levels respectively, which correspond to the correct DF values.
Using the second test (with drift), I obtain critical values of -2.354, -1.656 and -1.288 at the 1%, 5% and 10% levels respectively, which do not correspond to the correct DF values, but instead are the critical values from the t-distribution with 140 observations.
The t-distribution critical values are obviously not valid for the Dickey Fuller test and this appears to be a error in the "dfuller" code.
I am running Stata 15.1 and have recently updated the system.
Any advice on why this is occurring, or confirmation that this is indeed a bug with the "dfuller" command would be highly appreciated.
Thanks,
James
Comment