Learn R Programming

xtpqardl

Panel Quantile Autoregressive Distributed Lag Model for R

Overview

The xtpqardl package provides functions for estimating Panel Quantile ARDL (PQARDL) models. It combines the panel ARDL methodology of Pesaran, Shin, and Smith (1999) with quantile regression to allow for heterogeneous effects across the conditional distribution of the response variable.

Installation

# Install from CRAN (when available)
install.packages("xtpqardl")

# Or install development version from GitHub
# devtools::install_github("merwanroudane/xtpqardl")

Usage

library(xtpqardl)

# Load example data
data(pqardl_sample)

# Estimate PQARDL model at multiple quantiles
fit <- xtpqardl(
  formula = d_y ~ d_x1 + d_x2,
  data = pqardl_sample,
  id = "country",
  time = "year",
  lr = c("L_y", "x1", "x2"),
  tau = c(0.25, 0.50, 0.75),
  model = "pmg"
)

# View results
summary(fit)

# Test parameter equality across quantiles
wald_test(fit)

# Compute impulse response function
irf <- compute_irf(fit, horizon = 20)
print(irf)

Key Features

  • Multiple estimators: Pooled Mean Group (PMG), Mean Group (MG), and Dynamic Fixed Effects (DFE)
  • Multiple quantiles: Estimate at any set of quantiles simultaneously
  • Long-run parameters: Compute cointegrating coefficients β(τ)
  • Error correction: Speed of adjustment ρ(τ) with convergence diagnostics
  • Half-life: Time to close 50% of disequilibrium
  • Wald tests: Test for parameter equality across quantiles
  • IRF: Impulse response function by quantile
  • Lag selection: Automatic BIC/AIC lag order selection

References

  • Pesaran MH, Shin Y, Smith RP (1999). "Pooled Mean Group Estimation of Dynamic Heterogeneous Panels." Journal of the American Statistical Association, 94(446), 621-634. doi:10.1080/01621459.1999.10474156

  • Cho JS, Kim TH, Shin Y (2015). "Quantile Cointegration in the Autoregressive Distributed-Lag Modeling Framework." Journal of Econometrics, 188(1), 281-300. doi:10.1016/j.jeconom.2015.02.030

  • Bildirici M, Kayikci F (2022). "Uncertainty, Renewable Energy, and CO2 Emissions in Top Renewable Energy Countries: A Panel Quantile Regression Approach." Energy, 247, 124303. doi:10.1016/j.energy.2022.124303

Author

Dr. Merwan Roudane (merwanroudane920@gmail.com)

License

GPL-3

Copy Link

Version

Install

install.packages('xtpqardl')

Version

1.0.1

License

GPL-3

Maintainer

Muhammad Alkhalaf

Last Published

March 12th, 2026

Functions in xtpqardl (1.0.1)

print.wald_test.xtpqardl

Print Method for wald_test.xtpqardl Objects
summary.xtpqardl

Summary Method for xtpqardl Objects
xtpqardl

Panel Quantile Autoregressive Distributed Lag Model
xtpqardl-package

Panel Quantile Autoregressive Distributed Lag Model
compute_irf

Compute Impulse Response Function
vcov.xtpqardl

Variance-Covariance Matrix for xtpqardl Objects
print.summary.xtpqardl

Print Method for summary.xtpqardl Objects
coef.xtpqardl

Coefficients Method for xtpqardl Objects
print.irf.xtpqardl

Print Method for irf.xtpqardl Objects
wald_test

Wald Test for Parameter Equality Across Quantiles
print.xtpqardl

Print Method for xtpqardl Objects
pqardl_sample

Simulated Panel Data for PQARDL Estimation