login

VAR, SVAR and SVEC Models: Implementation Within<i>R</i>Package<b>vars</b>

Journal of Statistical SoftwarePublished 1 January 2008Open access
Bernhard Pfaff
Citations451
SJR quartileQ1
SJR score3.21
SNIP4.61
View PDF

TL;DR

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 and it is further possible to convert vector error Correction models into their level VAR representation.

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.

Keywords

Economics, Econometrics and Finance