| Title: | Quantile Autoregressive Distributed Lag Unit Root Test |
|---|---|
| Description: | Implements the Quantile Autoregressive Distributed Lag (QADF) unit root test proposed by Koenker and Xiao (2004) <doi:10.1198/016214504000001114>. The test examines unit root behaviour across the conditional distribution of a time series using quantile regression, providing a richer characterisation of persistence than standard ADF tests. Critical values follow Hansen (1995) <doi:10.1017/S0266466600009993>. Lag order selection is supported via AIC, BIC, or the t-statistic sequential testing approach. |
| Authors: | Muhammad Alkhalaf [aut, cre, cph] (ORCID: <https://orcid.org/0009-0002-2677-9246>) |
| Maintainer: | Muhammad Alkhalaf <[email protected]> |
| License: | GPL-3 |
| Version: | 1.0.2 |
| Built: | 2026-10-09 11:40:20 UTC |
| Source: | https://github.com/muhammedalkhalaf/qadf |
Print and summary methods for objects of class "qadf" returned
by qadf.
## S3 method for class 'qadf' print(x, digits = 4L, ...) ## S3 method for class 'qadf' summary(object, ...)## S3 method for class 'qadf' print(x, digits = 4L, ...) ## S3 method for class 'qadf' summary(object, ...)
x |
An object of class |
digits |
Integer. Number of significant digits for display. |
... |
Further arguments (ignored). |
object |
An object of class |
Invisibly returns the input object.
set.seed(1) y <- cumsum(rnorm(80)) res <- qadf(y, tau = 0.5) print(res) summary(res)set.seed(1) y <- cumsum(rnorm(80)) res <- qadf(y, tau = 0.5) print(res) summary(res)
Implements the Quantile Autoregressive Distributed Lag (QADF) unit root test of Koenker and Xiao (2004). The test examines unit root behaviour across quantiles of the conditional distribution of a time series using quantile regression.
qadf(x, tau = 0.5, model = "c", max_lags = 8, ic = "aic")qadf(x, tau = 0.5, model = "c", max_lags = 8, ic = "aic")
x |
A numeric vector or univariate time series object. |
tau |
A numeric scalar specifying the quantile at which to estimate
the model. Must satisfy |
model |
A character string specifying the deterministic component.
|
max_lags |
A non-negative integer specifying the maximum number of
augmentation lags to consider. Default is |
ic |
A character string for the information criterion used to select
the optimal lag length. One of |
The quantile autoregression is estimated in levels,
with a linear trend added for model = "ct". The lag order
is chosen from the ADF regression on a common sample. The statistic is
equation (9) of Koenker and Xiao (2004),
where projects off the other regressors and the density is
estimated by the difference quotient of the fitted conditional quantile at
with the Hall-Sheather bandwidth . It tests
against .
The limiting distribution depends on ; the critical values
are those of Hansen (1995) for the covariate augmented Dickey-Fuller test,
linearly interpolated on the grid .
An object of class "qadf" with components:
The QADF t-statistic .
The statistic.
Quantile autoregressive coefficient .
OLS autoregressive coefficient.
Quantile intercept .
Nuisance parameter , the squared
correlation between and ;
it indexes the critical values.
Half-life implied by , in periods.
Selected lag order.
Number of observations used.
Named numeric vector of critical values at 1%,
5%, and 10% from Hansen (1995), interpolated in .
The quantile used.
The deterministic model used.
The information criterion used.
The name of the input series.
Koenker, R. and Xiao, Z. (2004). Unit Root Quantile Autoregression Inference. Journal of the American Statistical Association, 99(465), 775–787. doi:10.1198/016214504000001114
Hansen, B. E. (1995). Rethinking the Univariate Approach to Unit Root Tests: How to Use Covariates to Increase Power. Econometric Theory, 11(5), 1148–1171. doi:10.1017/S0266466600009993
set.seed(42) y <- cumsum(rnorm(100)) result <- qadf(y, tau = 0.5, model = "c", max_lags = 4) print(result)set.seed(42) y <- cumsum(rnorm(100)) result <- qadf(y, tau = 0.5, model = "c", max_lags = 4) print(result)