Panel Vector Autoregression in R with the Package Panelvar
49 Pages Posted: 19 Jan 2018 Last revised: 21 Feb 2019
Date Written: February 18, 2019
In this paper, we extend two general methods of moment (GMM) estimators to panel vector autoregression models (PVAR) with p lags of endogenous variables, predetermined and strictly exogenous variables. We first extend the first difference GMM estimator to this extended PVAR model. Second, we do the same for the system GMM estimator. We implement these estimators in the R package panelvar. In addition to the GMM estimators, we contribute to the empirical literature by implementing common 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.
Keywords: Panel vector autoregression model, generalized method of moments, first difference and system GMM
JEL Classification: G20, G30
Suggested Citation: Suggested Citation