Multiple Granger Causality Tests for Time Series and Panel Data
Overview
Comprehensive suite of Granger causality tests for time series and panel data. For time series: Toda-Yamamoto (1995) doi:10.1016/0304-4076(94)01616-8, Fourier-based tests with single frequency (Enders and Jones, 2016) doi:10.1515/snde-2014-0101 and cumulative frequencies (Nazlioglu et al., 2019) doi:10.1080/1540496X.2018.1434072, quantile causality tests (Cai et al., 2023) doi:10.1016/j.frl.2023.104327, and Bootstrap Fourier Granger Causality in Quantiles (Cheng et al., 2021) doi:10.1007/s12076-020-00263-0. For panel data: Panel Fourier Toda-Yamamoto (Yilanci and Gorus, 2020) doi:10.1007/s11356-020-10092-9 and Panel Quantile Causality tests (Wang and Nguyen, 2022) doi:10.1080/1331677X.2021.1948436, as well as Group-Mean and Pooled Fully Modified OLS estimators for panel cointegrating polynomial regressions (Wagner and Reichold, 2023) doi:10.1080/07474938.2023.2178141. All tests include bootstrap inference for robust p-values.
xtpcmg(): the one-sided long-run covariance used in the fully modified bias correction was transposed (it estimated the sum of E(u_t v_{t+j}) instead of E(v_t u_{t+j})), and the quadratic spectral and Daniell kernels did not use the one-sided weights of the authors' code; group-mean and pooled FM-OLS estimates were therefore biased. The long-run covariance now follows the authors' lr_varmod.m.xtpcmg(), pooled model: the covariance matrix is now the asymptotic covariance of de Jong and Wagner (2022) for one-way and two-way effects (as in the authors' PanelEKC code), with a heteroskedasticity-robust sandwich for the controls; the previous version used sigma^2 (X'X)^-1 from the FM residuals, and a unit matrix when X'X was singular.xtpcmg(), cross-section robust covariance (corr_rob = TRUE): uses the conditional long-run covariance between units instead of the covariance of u alone.- All
xtpcmg()estimates and standard errors now reproduce the Stata module xtpcmg 1.0.2; tests added.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-03-14
Documentation
- Help pages
- 12 (1 internal)includes a package overview page
- Examples that run
- 86%6 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 33%
Downloads
Repository
Stars over time
Releases over time
Commits over time
Commit identities over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/muhammedalkhalaf/caustests on 2026-10-21.
The repository owner accepts GitHub Sponsors
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-09-27Commits: at least 6 crediting it in the message
- Claude Fable 5.13 commits · Sep to Oct 2026
- Claude Opus 5.53 commits · Sep 2026
Dependencies
Installing caustests adds 3 packages (2 with compiled code, 1.4 MB of source tarballs). Heaviest: quantreg 903 KB, SparseM 540 KB, MatrixModels 24 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.4Latest
- RR 4.6.0 released · 2026-04-24
- 1.1.1
- 1.0.22026-03-12
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-12
- Total releases
- 3 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 4.6 KB / 1 file
- Download size
- 40 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("caustests")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.caustests.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.