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. Blanchard, Olivier Jean & Quah, Danny, 1989. "The Dynamic Effects of Aggregate Demand and Supply Disturbances," American Economic Review, American Economic Association, vol. 79(4), pages 655-673, September.
    2. 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).
    3. Dickey, David A & Fuller, Wayne A, 1981. "Likelihood Ratio Statistics for Autoregressive Time Series with a Unit Root," Econometrica, Econometric Society, vol. 49(4), pages 1057-1072, June.
    4. Breusch, T S, 1978. "Testing for Autocorrelation in Dynamic Linear Models," Australian Economic Papers, Wiley Blackwell, vol. 17(31), pages 334-355, December.
    5. Godfrey, Leslie G, 1978. "Testing for Higher Order Serial Correlation in Regression Equations When the Regressors Include Lagged Dependent Variables," Econometrica, Econometric Society, vol. 46(6), pages 1303-1310, November.
    6. Sims, Christopher A, 1980. "Macroeconomics and Reality," Econometrica, Econometric Society, vol. 48(1), pages 1-48, January.
    7. Osterwald-Lenum, Michael, 1992. "A Note with Quantiles of the Asymptotic Distribution of the Maximum Likelihood Cointegration Rank Test Statistics," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 54(3), pages 461-472, August.
    8. Granger, C. W. J., 1981. "Some properties of time series data and their use in econometric model specification," Journal of Econometrics, Elsevier, vol. 16(1), pages 121-130, May.
    9. Engle, Robert & Granger, Clive, 2015. "Co-integration and error correction: Representation, estimation, and testing," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 39(3), pages 106-135.
    10. Banerjee, Anindya & Dolado, Juan J. & Galbraith, John W. & Hendry, David, 1993. "Co-integration, Error Correction, and the Econometric Analysis of Non-Stationary Data," OUP Catalogue, Oxford University Press, number 9780198288107.
    11. Paul Gilbert, 2000. "A note on the computation of time series model roots," Applied Economics Letters, Taylor & Francis Journals, vol. 7(7), pages 423-424.
    12. David Edgerton & Ghazi Shukur, 1999. "Testing autocorrelation in a system perspective testing autocorrelation," Econometric Reviews, Taylor & Francis Journals, vol. 18(4), pages 343-386.
    13. Jarque, Carlos M. & Bera, Anil K., 1980. "Efficient tests for normality, homoscedasticity and serial independence of regression residuals," Economics Letters, Elsevier, vol. 6(3), pages 255-259.
    14. Bera, Anil K. & Jarque, Carlos M., 1981. "Efficient tests for normality, homoscedasticity and serial independence of regression residuals : Monte Carlo Evidence," Economics Letters, Elsevier, vol. 7(4), pages 313-318.
    15. Engle, Robert F, 1982. "Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation," Econometrica, Econometric Society, vol. 50(4), pages 987-1007, July.
    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:jss:jstsof:27:i04 is not listed on IDEAS
    2. Charles G. Renfro, 2009. "The Practice of Econometric Theory," Advanced Studies in Theoretical and Applied Econometrics, Springer, number 978-3-540-75571-5, July-Dece.
    3. Lütkepohl,Helmut & Krätzig,Markus (ed.), 2004. "Applied Time Series Econometrics," Cambridge Books, Cambridge University Press, number 9780521547871.
    4. Committee, Nobel Prize, 2003. "Time-series Econometrics: Cointegration and Autoregressive Conditional Heteroskedasticity," Nobel Prize in Economics documents 2003-1, Nobel Prize Committee.
    5. Mizon, Grayham E., 1995. "A simple message for autocorrelation correctors: Don't," Journal of Econometrics, Elsevier, vol. 69(1), pages 267-288, September.
    6. Sugra Humbatova & Ibrahim Guliyev Gadim & Sabuhi Tanriverdiyev Mileddin & Natig Gadim-Oglu Hajiyev, 2023. "Impact of Oil Factor on Consumer Market: The Case of Azerbaijan," International Journal of Energy Economics and Policy, Econjournals, vol. 13(4), pages 202-215, July.
    7. Sugra Humbatova, 2023. "The Impact of Oil Prices on State Budget Income and Expenses: Case of Azerbaijan," International Journal of Energy Economics and Policy, Econjournals, vol. 13(1), pages 189-212, January.
    8. M. T. Alguacil & V. Orts, 2003. "Inward Foreign Direct Investment and Imports in Spain," International Economic Journal, Taylor & Francis Journals, vol. 17(3), pages 19-38.
    9. Ericsson, Neil R & Hendry, David F & Mizon, Grayham E, 1998. "Exogeneity, Cointegration, and Economic Policy Analysis," Journal of Business & Economic Statistics, American Statistical Association, vol. 16(4), pages 370-387, October.
    10. Abdul Qayyum, 2000. "Demand for Real Money Balances by the Business Sector: An Econometric Investigation," The Pakistan Development Review, Pakistan Institute of Development Economics, vol. 39(4), pages 857-873.
    11. Alexander Schätz, 2010. "Macroeconomic Effects on Emerging Market Sector Indices," Journal of Emerging Market Finance, Institute for Financial Management and Research, vol. 9(2), pages 131-169, August.
    12. Adrian C. Darnell, 1994. "A Dictionary Of Econometrics," Books, Edward Elgar Publishing, number 118.
    13. Hassink, W.H.J. & Broersma, L., 1993. "Labour demand and job-to-job movement : macro-consequences as a result from micro-economic behaviour," Serie Research Memoranda 0001, VU University Amsterdam, Faculty of Economics, Business Administration and Econometrics.
    14. Roberto Martínez-Espiñeira, 2007. "An Estimation of Residential Water Demand Using Co-Integration and Error Correction Techniques," Journal of Applied Economics, Taylor & Francis Journals, vol. 10(1), pages 161-184, May.
    15. Kerry Patterson & Michael A. Thornton, 2013. "A review of econometric concepts and methods for empirical macroeconomics," Chapters, in: Nigar Hashimzade & Michael A. Thornton (ed.), Handbook of Research Methods and Applications in Empirical Macroeconomics, chapter 2, pages 4-42, Edward Elgar Publishing.
    16. Mezgebo, Taddese, 2009. "A multivariate approach for identification of optimal locations with in Ethiopia’s wheat market to tackle soaring inflation on food price," MPRA Paper 18663, University Library of Munich, Germany.
    17. Neil R. Ericsson & Steven B. Kamin, 1993. "Dollarization in Argentina," International Finance Discussion Papers 460, Board of Governors of the Federal Reserve System (U.S.).
    18. Sunil Sharma & Neil R. Ericsson, 1998. "Broad money demand and financial liberalization in Greece," Empirical Economics, Springer, vol. 23(3), pages 417-436.
    19. John D. Levendis, 2018. "Time Series Econometrics," Springer Texts in Business and Economics, Springer, number 978-3-319-98282-3, August.
    20. Daniel, Betty C., 1997. "International interdependence of national growth rates: A structural trends anakysis," Journal of Monetary Economics, Elsevier, vol. 40(1), pages 73-96, September.
    21. Andrade, Isabel, 1992. "The relationship between inflation and relative price variability: A multivariate approach," Discussion Paper Series In Economics And Econometrics 9203, Economics Division, School of Social Sciences, University of Southampton.

    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.