IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v027i04.html
   My bibliography  Save this article

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. Maria Lourdes Ordoñez Olivo & Zoltán Lakner, 2023. "Shaping the Knowledge Base of Bioeconomy Sectors Development in Latin American and Caribbean Countries: A Bibliometric Analysis," Sustainability, MDPI, vol. 15(6), pages 1-18, March.
    2. repec:ers:journl:v:xxiv:y:2021:i:4:p:370-395 is not listed on IDEAS
    3. Akaev, Askar & Devezas, Tessaleno & Ichkitidze, Yuri & Sarygulov, Askar, 2021. "Forecasting the labor intensity and labor income share for G7 countries in the digital age," Technological Forecasting and Social Change, Elsevier, vol. 167(C).
    4. 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).
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    11. James Nolan & Zoe Laulederkind, 2022. "Plane to See? Empirical Analysis of the 1999–2006 Air Cargo Cartel," Advances in Airline Economics, in: The International Air Cargo Industry, volume 9, pages 241-262, Emerald Group Publishing Limited.
    12. Amey Sapre, 2014. "Madhya Pradesh: Does Agriculture Determine the State’s Growth Trajectory?," Margin: The Journal of Applied Economic Research, National Council of Applied Economic Research, vol. 8(1), pages 39-57, February.
    13. 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.
    14. 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.
    15. Jung, R.C. & Maderitsch, R., 2014. "Structural breaks in volatility spillovers between international financial markets: Contagion or mere interdependence?," Journal of Banking & Finance, Elsevier, vol. 47(C), pages 331-342.
    16. Ashok Chanabasangouda Patil & Shailesh Rastogi, 2020. "Multifractal Analysis of Market Efficiency across Structural Breaks: Implications for the Adaptive Market Hypothesis," JRFM, MDPI, vol. 13(10), pages 1-18, October.
    17. Fryzlewicz, Piotr, 2020. "Detecting possibly frequent change-points: Wild Binary Segmentation 2 and steepest-drop model selection," LSE Research Online Documents on Economics 103430, London School of Economics and Political Science, LSE Library.
    18. 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.
    19. Anttila, Juho, 2018. "Measuring the effects of conventional and unconventional monetary policy in the euro area," Research Discussion Papers 12/2018, Bank of Finland.
    20. Korobova, Elena & Fantazzini, Dean, 2024. "Stablecoins and credit risk: when do they stop being stable?," MPRA Paper 122951, University Library of Munich, Germany.
    21. de Silva, Ashton J & Boymal, Jonathan & Potts, Jason & Thomas, Stuart, 2015. "Does innovation in residential mortgage products explain rising house prices? No," MPRA Paper 62548, University Library of Munich, Germany.

    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.