| Literature DB >> 32084162 |
Abstract
In this article, we introduce the R package dLagM for the implementation of distributed lag models and autoregressive distributed lag (ARDL) bounds testing to explore the short and long-run relationships between dependent and independent time series. Distributed lag models constitute a large class of time series regression models including the ARDL models used for cointegration analysis. The dLagM package provides a user-friendly and flexible environment for the implementation of the finite linear, polynomial, Koyck, and ARDL models and ARDL bounds cointegration test. Particularly, in this article, a new search algorithm to specify the orders of ARDL bounds testing is proposed and implemented by the dLagM package. Main features and input/output structures of the dLagM package and use of the proposed algorithm are illustrated over the datasets included in the package. Features of dLagM package are benchmarked with some mainstream software used to implement distributed lag models and ARDLs.Entities:
Year: 2020 PMID: 32084162 PMCID: PMC7034805 DOI: 10.1371/journal.pone.0228812
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1Rolling correlations between the monthly GMSL and mean land-ocean temperature series.
Description of the test cases for the comparison of the full-search and the proposed algorithm for the specification of orders in the ARDL bounds testing.
| Trial | Dataset | Package | Formula | n | Freq. | max.p | max.q |
|---|---|---|---|---|---|---|---|
| 1 | ineq |
|
| 49 | 1 | 5 | 5 |
| 2 | M1Germany |
|
| 147 | 4 | 7 | 7 |
| 3 | M1Germany |
|
| 147 | 4 | 5 | 5 |
| 4 | seaLevelTempSOI |
|
| 1595 | 12 | 10 | 10 |
| 5 | chicagoNMMAPS |
|
| 5114 | 365 | 10 | 10 |
n: The number of observations in the dataset. Freq.: Frequency of the series.
Benchmarking of p and q lag orders, implementation time, and the value of GOF statistic for the full-search and the proposed algorithm for Trials 1, 2, 4, and 5.
| Trial | Full-Search algorithm | Proposed algorithm | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Statistic | p | q | Time | Value | p | q | Time | Value | |||
| 1 | 1 | 1 | 1 | 3.96 | -247.3 | 1 | 1 | 1 | 1.64 | -247.3 | |
| 1 | 1 | 1 | 3.67 | -255.8 | 1 | 1 | 1 | 1.66 | -255.8 | ||
| 5 | 5 | 5 | 3.65 | 0.337 | 4 | 3 | 5 | 1.80 | 0.340 | ||
| 4 | 3 | 5 | 3.59 | 0.239 | 4 | 3 | 5 | 1.79 | 0.239 | ||
| 2 | 4 | 4 | 4 | 13.01 | -727.6 | 4 | 3 | 4 | 3.13 | -725.6 | |
| 4 | 1 | 4 | 12.67 | -677.1 | 4 | 1 | 4 | 4.71 | -677.1 | ||
| 5 | 7 | 7 | 13.07 | 0.124 | 5 | 7 | 7 | 4.66 | 0.124 | ||
| 5 | 6 | 6 | 13.27 | 0.080 | 4 | 7 | 4 | 4.63 | 0.084 | ||
| 4 | 2 | 2 | 10 | 143.6 | 6413 | 1 | 1 | 10 | 15.69 | 6413 | |
| 1 | 1 | 10 | 140.2 | 6515 | 1 | 1 | 10 | 29.83 | 6515 | ||
| 8 | 9 | 9 | 136.6 | 0.514 | 8 | 9 | 9 | 26.69 | 0.514 | ||
| 4 | 8 | 8 | 137.9 | 0.509 | 5 | 3 | 8 | 17.01 | 0.512 | ||
| 5 | 5 | 4 | 5 | 35.81 | 40397 | 5 | 4 | 5 | 13.87 | 40397 | |
| 1 | 3 | 5 | 35.43 | 40509 | 1 | 3 | 5 | 13.62 | 40509 | ||
| 5 | 4 | 5 | 34.27 | 0.435 | 5 | 4 | 5 | 13.15 | 0.435 | ||
| 4 | 2 | 5 | 33.85 | 0.565 | 4 | 2 | 5 | 10.73 | 0.565 | ||
Benchmarking of p and q lag orders, implementation time, and the value of GOF statistic for the full-search and the proposed algorithm for Trial 3.
| Algorithm | Statistic | p | q | Time | Value | ||
|---|---|---|---|---|---|---|---|
| Full Search | 4 | 1 | 5 | 4 | 26.52 | -729.78 | |
| 4 | 1 | 1 | 4 | 27.39 | -671.25 | ||
| 4 | 4 | 5 | 4 | 27.05 | 0.118 | ||
| 2 | 1 | 5 | 4 | 26.64 | 0.077 | ||
| Proposed | 4 | 1 | 4 | 4 | 3.68 | -729.26 | |
| 4 | 1 | 1 | 4 | 6.35 | -671.25 | ||
| 4 | 4 | 5 | 5 | 6.48 | 0.119 | ||
| 3 | 3 | 1 | 4 | 2.39 | 0.079 | ||
Fig 2Recursive CUSUM, CUSUM of squares and MOSUM plots for the model stability.