.- help for ^dfgls^ (STB-57: sts15) .- Dickey-Fuller/Generalized Least Squares unit root test ------------------------------------------------------ ^dfgls^ varname [^if^ exp] [^in^ range] [^,^ ^m^axlag^(^#^)^ ^notrend^ ^ERS^] ^dfgls^ is for use with time-series data. You must ^tsset^ your data before using ^dfgls^; see help @tsset@. varname may contain time-series operators; see help @varlist@. Description ----------- ^dfgls^ performs the Elliott-Rothenberg-Stock (ERS, 1996) efficient test for an autoregressive unit root. This test is similar to an (augmented) Dickey-Fuller "t" test, as performed by ^dfuller^, but has the best overall performance in terms of small-sample size and power, dominating the ordinary Dickey-Fuller test. The ^dfgls^ test "has substantially improved power when an unknown mean or trend is present" (ERS, p.813). The test applies a GLS detrending (demeaning) step to the varname; the detrended (demeaned) series is then tested via the Dickey-Fuller regression. Demeaning only is performed if the ^notrend^ option is specified. The maximum lag order for the test is by default calculated from the sample size using a rule provided by Schwert (1989) using c=12 and d=4 in his terminology. The maximum lag order may also be provided with the ^maxlag^ option and may be zero. If the maximum lag order exceeds one, the test is performed for each lag, with the sample size held constant over lags at the maximum available sample. Approximate 5% and 10% critical values, by default, are calculated from the response surface estimates of Table 1, Cheung and Lai (1995), which take both the sample size and the lag specification into account. Approximate 1% critical values for the GLS detrended test are interpolated from ERS, Table 1 (p.825). Approximate 1% critical values for the GLS demeaned test are identical to those applicable to the no-constant, no-trend Dickey-Fuller test and are computed using the ^dfuller^ code. The ^ERS^ option specifies that the ERS (and Dickey-Fuller) values are to be used for all levels of significance (eschewing the response surface estimates). If the maximum lag order exceeds one, the optimal lag order is calculated by the Ng-Perron (1995) sequential t test on the highest order lag coefficient, stopping when that coefficient's p-value is less than 0.10. The lag minimizing the SC (BIC) criterion is printed with its minimized value. The DF-GLS test statistic, optimal lag order, RMSE (calculated from sample size T) and values of the SC for each lag are placed in the return array. Options ------- ^maxlag(^#^)^ specifies the maximum lag order to be used in augmenting the Dickey-Fuller regression. If omitted, the maximum lag order is calculated as described above. ^notrend^ indicates that GLS demeaning, rather than GLS detrending, is to be performed. ^ERS^ specifies that the ERS (and Dickey-Fuller) values are to be used for all levels of significance (eschewing the response surface estimates). Examples -------- . ^dfgls gnp^ . ^dfgls gnp, maxlag(12) notrend^ . ^dfgls gnp if tin(1973q1,1995q4)^ References ---------- Cheung, Yin-Wong and Kon S. Lai. Lag Order and Critical Values of a Modified Dickey-Fuller Test. Oxford Bulletin of Economics and Statistics, 57:3, 1995, 411-419. Elliott, Graham, Rothenberg, Thomas J., and James H. Stock. Efficient Tests for an Autoregressive Unit Root. Econometrica, 64:4, 1996, 813-836. Ng, Serena and Pierre Perron. Unit Root Tests in ARMA Models with Data-Dependent Methods for the Selection of the Truncation Lag. Journal of the American Statistical Association, 90:429, 1995, 268-281. Schwert, G.W. Tests for Unit Roots: A Monte Carlo Investigation. Journal of Business and Economic Statistics, 7, 1989, 147-160. Acknowledgements ---------------- I have had useful conversations with Serena Ng on the importance of these tests, and the use of the Ng-Perron criterion to determine appropriate lag order. Vince Wiggins of StataCorp provided invaluable assistance with development of the code. Thanks also to Richard Sperling for tracking down a discrepancy between published work and this routine's output and alerting me to the Cheung and Lai estimates. Remaining errors are my own. Author ------ Christopher F Baum, Boston College, USA baum@@bc.edu Also see -------- Manual: ^[R] dfuller^ On-line: help for @dfuller@, @time@, @tsset@