IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v027i04.html

VAR, SVAR and SVEC Models: Implementation Within R Package vars

Author

Listed:
  • Pfaff, Bernhard

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.

Suggested Citation

  • Pfaff, Bernhard, 2008. "VAR, SVAR and SVEC Models: Implementation Within R Package vars," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i04).
  • Handle: RePEc:jss:jstsof:v:027:i04
    DOI: http://hdl.handle.net/10.18637/jss.v027.i04
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v027i04/v27i04.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v027i04/vars_1.4-0.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v027i04/v27i04.R.zip
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v027.i04?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Zeileis, Achim & Leisch, Friedrich & Hornik, Kurt & Kleiber, Christian, 2002. "strucchange: An R Package for Testing for Structural Change in Linear Regression Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 7(i02).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. repec:ers:journl:v:xxiv:y:2021:i:4:p:370-395 is not listed on IDEAS
    2. Grün, Bettina & Kosmidis, Ioannis & Zeileis, Achim, 2012. "Extended Beta Regression in R: Shaken, Stirred, Mixed, and Partitioned," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 48(i11).
    3. Les Oxley & Chris Price & William Rea & Marco Reale, 2008. "A New Procedure to Test for H Self-Similarity," Working Papers in Economics 08/16, University of Canterbury, Department of Economics and Finance.
    4. Mensi, Walid & Lee, Yun-Jung & Al-Yahyaee, Khamis Hamed & Sensoy, Ahmet & Yoon, Seong-Min, 2019. "Intraday downward/upward multifractality and long memory in Bitcoin and Ethereum markets: An asymmetric multifractal detrended fluctuation analysis," Finance Research Letters, Elsevier, vol. 31(C), pages 19-25.
    5. Ruggieri, Eric & Antonellis, Marcus, 2016. "An exact approach to Bayesian sequential change point detection," Computational Statistics & Data Analysis, Elsevier, vol. 97(C), pages 71-86.
    6. Patrik Nosil & Zachariah Gompert & Daniel J. Funk, 2024. "Divergent dynamics of sexual and habitat isolation at the transition between stick insect populations and species," Nature Communications, Nature, vol. 15(1), pages 1-15, December.
    7. Zeileis, Achim, 2006. "Implementing a class of structural change tests: An econometric computing approach," Computational Statistics & Data Analysis, Elsevier, vol. 50(11), pages 2987-3008, July.
    8. Kleanthis Natsiopoulos & Nickolaos G. Tzeremes, 2024. "ARDL: An R Package for ARDL Models and Cointegration," Computational Economics, Springer;Society for Computational Economics, vol. 64(3), pages 1757-1773, September.
    9. Emily Zimmerman & Thomas Carpenito & Alaina Martens, 2020. "Changes in infant non-nutritive sucking throughout a suck sample at 3-months of age," PLOS ONE, Public Library of Science, vol. 15(7), pages 1-14, July.
    10. João Sousa Andrade & Adelaide Duarte & Marta Simões, 2011. "Inequality and Growth in Portugal: a time series analysis," GEMF Working Papers 2011-11, GEMF, Faculty of Economics, University of Coimbra.
    11. Anttila, Juho, 2018. "Measuring the effects of conventional and unconventional monetary policy in the euro area," Research Discussion Papers 12/2018, Bank of Finland.
    12. Yang, Yang & Liu, Qing & Chang, Chia-Hsun, 2023. "China-Europe freight transportation under the first wave of COVID-19 pandemic and government restriction measures," Research in Transportation Economics, Elsevier, vol. 97(C).
    13. Paolo Libenzio Brignoli & Alessandro Varacca & Cornelis Gardebroek & Paolo Sckokai, 2024. "Machine learning to predict grains futures prices," Agricultural Economics, International Association of Agricultural Economists, vol. 55(3), pages 479-497, May.
    14. Zeileis, Achim & Koenker, Roger, 2008. "Econometrics in R: Past, Present, and Future," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i01).
    15. Du, Xiaodong & Yu, Cindy L. & Hayes, Dermot J., 2011. "Speculation and volatility spillover in the crude oil and agricultural commodity markets: A Bayesian analysis," Energy Economics, Elsevier, vol. 33(3), pages 497-503, May.
    16. Wim Paas & Miranda P M Meuwissen & Martin K van Ittersum & Pytrik Reidsma, 2023. "Temporal and inter-farm variability of economic and environmental farm performance: A resilience perspective on potato producing regions in the Netherlands," PLOS Sustainability and Transformation, Public Library of Science, vol. 2(2), pages 1-24, February.
    17. Jan C. Greyling & Phillip G. Pardey & Senait Senay, 2025. "Agricultural policy and crop location: Long‐run output and spatial climate risk consequences," American Journal of Agricultural Economics, John Wiley & Sons, vol. 107(1), pages 181-207, January.
    18. Fabio Clementi & Marco Gallegati & Mauro Gallegati, 2015. "Growth and Cycles of the Italian Economy Since 1861: The New Evidence," Italian Economic Journal: A Continuation of Rivista Italiana degli Economisti and Giornale degli Economisti, Springer;Società Italiana degli Economisti (Italian Economic Association), vol. 1(1), pages 25-59, March.
    19. Edgar Merkle & Jinyan Fan & Achim Zeileis, 2014. "Testing for Measurement Invariance with Respect to an Ordinal Variable," Psychometrika, Springer;The Psychometric Society, vol. 79(4), pages 569-584, October.
    20. Greyling, Jan & Pardey, Philip G. & Senay, Senait, "undated". "Distortionary Agricultural Policies: Their Productivity, Location and Climate Variability Implications for South Africa During the 20th Century," Staff Papers 330158, University of Minnesota, Department of Applied Economics.
    21. Liu, Guanchun & He, Lei & Yue, Yiding & Wang, Jiying, 2014. "The linkage between insurance activity and banking credit: Some evidence from dynamic analysis," The North American Journal of Economics and Finance, Elsevier, vol. 29(C), pages 239-265.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:027:i04. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.