grangersearch: An R Package for Exhaustive Granger Causality Testing with Tidyverse Integration
Abstract
This paper introduces grangersearch, an R package for performing exhaustive Granger causality searches on multiple time series. The package provides: (1) exhaustive pairwise search across multiple variables, (2) automatic lag order optimization with visualization, (3) tidyverse-compatible syntax with pipe operators and non-standard evaluation, and (4) integration with the broom ecosystem through tidy() and glance() methods. The package wraps the vars infrastructure while providing a simple interface for exploratory causal analysis. We describe the statistical methodology, demonstrate the package through worked examples, and discuss practical considerations for applied researchers.
Keywords
Cite
@article{arxiv.2601.01604,
title = {grangersearch: An R Package for Exhaustive Granger Causality Testing with Tidyverse Integration},
author = {Nikolaos Korfiatis},
journal= {arXiv preprint arXiv:2601.01604},
year = {2026}
}
Comments
16 pages, 2 figures, R package available at https://github.com/nkorf/grangersearch