Durbin-Hausman Panel Cointegration Tests

Implements the Durbin-Hausman panel cointegration tests of Westerlund (2008) . The tests are robust to cross-sectional dependence through common factor extraction using principal components. Provides both group-mean (DHg) and panel (DHp) test statistics with automatic factor number selection via information criteria.


xtdhcoint

Overview

The xtdhcoint package implements the Durbin-Hausman panel cointegration tests of Westerlund (2008). The tests are robust to cross-sectional dependence through common factor extraction using principal components.

Installation

Install from CRAN:

install.packages("xtdhcoint")

Or install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("muhammedalkhalaf/xtdhcoint")

Usage

library(xtdhcoint)

# Load example data
data(fisher_panel)

# Run Durbin-Hausman panel cointegration test
result <- xtdhcoint(inflation ~ interest, data = fisher_panel,
                    id = "country", time = "year")

# Print results
print(result)

# Detailed summary with decision table
summary(result)

Test Statistics

The package provides two test statistics:

  • DHg (Group-mean statistic): Tests the null of no cointegration against the heterogeneous alternative that at least some units are cointegrated.

  • DHp (Panel statistic): Tests the null of no cointegration against the homogeneous alternative that all units are cointegrated with a common autoregressive parameter.

Both statistics are right-tailed tests. Large positive values indicate evidence of cointegration.

Options

  • kmax: Maximum number of common factors (default: 5)
  • criterion: Information criterion for factor selection ("ic", "pc", "aic", "bic")
  • penalty: Penalty type (1, 2, or 3)
  • bandwidth: Kernel bandwidth for long-run variance (-1 for automatic)

References

Westerlund, J. (2008). Panel cointegration tests of the Fisher effect. Journal of Applied Econometrics, 23(2), 193–233. doi:10.1002/jae.967

License

GPL-3

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("xtdhcoint")

1.0.3 by Muhammad Alkhalaf, 15 days ago


https://github.com/muhammedalkhalaf/xtdhcoint


Report a bug at https://github.com/muhammedalkhalaf/xtdhcoint/issues


Browse source code at https://github.com/cran/xtdhcoint


Authors: Muhammad Alkhalaf [aut, cre, cph] (ORCID: , Joakim Westerlund [ctb] (Original GAUSS code author)


Documentation:   PDF Manual  


GPL-3 license


Imports stats

Suggests testthat, knitr, rmarkdown


See at CRAN