Are there any R packages that can estimate panel vector autoregression (panel VAR, or PVAR) models from pooled time-series data?
I've searched several ways and come up empty. I'm hoping I've overlooked something that you know where to find.
If you're wondering what panel VAR models are and how they might be useful, this paper is not a bad place to start.
Best Answer
There is your solution. Code will be available soon.
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2896087
Panel Vector Autoregression in R: The Panelvar Package:
This paper considers two types of generalized method of moments (GMM) estimators for panel vector autoregression models (PVAR) with fixed individual effects. First, the first difference GMM estimator is implemented. It is an extension of the single equation dynamic panel model. A GMM-estimator for single equation dynamic panel model is implemented in the STATA package xtabond2. Some of the xtabond2 features are covered in the R package: plm. Second, also the so-called system GMM estimator is extended from single equation dynamic panel models to PVAR models. In addition to the GMM-estimators we contribute to the literature by providing specification tests (Hansen overidentification test, lag selection criterion and stability test of the PVAR polynomial) and classical structural analysis for PVAR models such as orthogonal and generalized impulse response functions, bootstrapped confidence intervals for impulse response analysis and forecast error variance decompositions. Finally, we implement the first difference and the forward orthogonal transformation to remove the fixed effects.