VAR, SVAR and SVEC Models: Implementation WithinRPackagevars

Bernhard Pfaff

Journal of Statistical Software · 2008 · 460 citations · 20 references

DOIFull text

Open access

Concepts

TL;DR

The paper explains the structure and implementation of the vars package for vector autoregressive, structural vector autoregressive, and structural vector error correction models, emphasizing implementation over usage. The package provides core functions VAR(), SVAR(), SVEC() along with diagnostic tests, restricted model estimation, prediction, causality, impulse response, forecast error variance decomposition, and VECM‑to‑VAR conversion, demonstrated with Canadian macroeconomic data.

Abstract

The structure of the package vars and its implementation of vector autoregressive, structural vector autoregressive and structural vector error correction models are explained in this paper. In addition to the three cornerstone functions VAR(), SVAR() and SVEC() for estimating such models, functions for diagnostic testing, estimation of a restricted models, prediction, causality analysis, impulse response analysis and forecast error variance decomposition are provided too. It is further possible to convert vector error correction models into their level VAR representation. The different methods and functions are elucidated by employing a macroeconomic data set for Canada. However, the focus in this writing is on the implementation part rather than the usage of the tools at hand.

References

20