MyNixOS website logo
Description

Cross-Sectionally Augmented Panel Quantile ARDL.

Implements the Cross-Sectionally Augmented Panel Quantile Autoregressive Distributed Lag (CS-PQARDL) model and the Quantile Common Correlated Effects Mean Group (QCCEMG) estimator for panel data with cross-sectional dependence. The package handles unobserved common factors through cross-sectional averages following Pesaran (2006) <doi:10.1111/j.1468-0262.2006.00692.x> and Chudik and Pesaran (2015) <doi:10.1016/j.jeconom.2015.03.007>. Quantile regression for dynamic panels follows Harding, Lamarche, and Pesaran (2018) <doi:10.1016/j.jeconom.2018.07.010>. The ARDL approach to cointegration testing is based on Pesaran, Shin, and Smith (2001) <doi:10.1002/jae.616>.

xtcspqardl: Cross-Sectionally Augmented Panel Quantile ARDL

Overview

The xtcspqardl package implements the Cross-Sectionally Augmented Panel Quantile ARDL (CS-PQARDL) model and the Quantile Common Correlated Effects Mean Group (QCCEMG/QCCEPMG) estimator for panel data with cross-sectional dependence.

Key Features

  • QCCEMG: Quantile CCE Mean Group estimator (Harding, Lamarche & Pesaran, 2018)
  • QCCEPMG: Quantile CCE Pooled Mean Group estimator
  • CS-PQARDL: Cross-sectionally augmented Panel Quantile ARDL
  • Handles cross-sectional dependence through CCE augmentation (Pesaran, 2006)
  • Lagged CSA following Chudik & Pesaran (2015)
  • Long-run coefficients with delta-method standard errors
  • Speed of adjustment and half-life calculations

Installation

From CRAN (when available)

install.packages("xtcspqardl")

From GitHub

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

Usage

QCCEMG Estimation

library(xtcspqardl)

# Generate panel data
set.seed(123)
N <- 20  # panels
T <- 50  # time periods

data <- data.frame(
  id = rep(1:N, each = T),
  time = rep(1:T, N),
  x = rnorm(N * T)
)

# Add dynamics
for (i in 1:N) {
  idx <- ((i-1)*T + 2):(i*T)
  data$y[idx] <- 0.5 * data$y[idx-1] + 0.3 * data$x[idx] + rnorm(T-1, sd=0.5)
}

# Estimate QCCEMG
fit <- xtcspqardl(
  formula = y ~ x,
  data = data,
  id = "id",
  time = "time",
  tau = c(0.25, 0.50, 0.75),
  estimator = "qccemg"
)

# View results
summary(fit)

CS-PQARDL Estimation

# With long-run variables
fit_ardl <- xtcspqardl(
  formula = y ~ dx | x,  # dx is short-run, x is long-run
  data = data,
  id = "id",
  time = "time",
  tau = c(0.25, 0.50, 0.75),
  estimator = "cspqardl",
  p = 1,
  q = 1
)

summary(fit_ardl)

Methodology

Cross-Sectional Averages (CSA)

The CCE approach augments individual regressions with cross-sectional averages:

$$\bar{z}t = \frac{1}{N} \sum{i=1}^{N} z_{it}$$

where $z$ includes both the dependent and independent variables.

QCCEMG Model

$$y_{it} = \lambda_i(\tau) y_{i,t-1} + \beta_i(\tau)' x_{it} + \delta_i(\tau)' \bar{z}t + u{it}(\tau)$$

Long-Run Coefficients

Long-run effects are computed as:

$$\theta(\tau) = \frac{\beta(\tau)}{1 - \lambda(\tau)}$$

CSA Lag Order

Following Chudik & Pesaran (2015), the default lag order for CSA is:

$$p_T = \lfloor T^{1/3} \rfloor$$

References

  • Chudik, A. and Pesaran, M.H. (2015). Common Correlated Effects Estimation of Heterogeneous Dynamic Panel Data Models with Weakly Exogenous Regressors. Journal of Econometrics, 188(2), 393-420. DOI: 10.1016/j.jeconom.2015.03.007

  • Harding, M., Lamarche, C., and Pesaran, M.H. (2018). Common Correlated Effects Estimation of Heterogeneous Dynamic Panel Quantile Regression Models. Journal of Applied Econometrics, 35(3), 294-314. DOI: 10.1016/j.jeconom.2018.07.010

  • Pesaran, M.H. (2006). Estimation and Inference in Large Heterogeneous Panels with a Multifactor Error Structure. Econometrica, 74(4), 967-1012. DOI: 10.1111/j.1468-0262.2006.00692.x

  • Pesaran, M.H., Shin, Y., and Smith, R.J. (2001). Bounds Testing Approaches to the Analysis of Level Relationships. Journal of Applied Econometrics, 16(3), 289-326. DOI: 10.1002/jae.616

Author

Merwan Roudane - [email protected]

License

GPL (>= 3)

Metadata

Version

1.0.2

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows