IDEAS home Printed from https://ideas.repec.org/a/spr/compst/v39y2024i7d10.1007_s00180-024-01492-3.html
   My bibliography  Save this article

Tips and tricks for Bayesian VAR models in gretl

Author

Listed:
  • Luca Pedini

    (Università Politecnica delle Marche)

Abstract

Bayesian Vector Autoregressive models have become the natural response to the dense parametrization often required by multivariate time series modeling. However, the Bayesian approach is somehow new to the gretl ecosystem: classical analysis of Vector Autoregressions (VARs) is natively supported and supplemented via addons and function packages, but a Bayesian counterpart in the form of equally general and advanced functions or, at a lower level, in the form of didactic example scripts is missing. This paper pursues the second route describing, via a replication exercise, how to perform basic Bayesian inference in gretl using VARs, with particular reference to structural analysis. The contribution goes in the direction of providing new hints and tools, available to the gretl user, for a more complete and up-to-date understanding of modern macroeconometrics.

Suggested Citation

  • Luca Pedini, 2024. "Tips and tricks for Bayesian VAR models in gretl," Computational Statistics, Springer, vol. 39(7), pages 3579-3597, December.
  • Handle: RePEc:spr:compst:v:39:y:2024:i:7:d:10.1007_s00180-024-01492-3
    DOI: 10.1007/s00180-024-01492-3
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s00180-024-01492-3
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s00180-024-01492-3?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Dimitris Korobilis, 2013. "Var Forecasting Using Bayesian Variable Selection," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 28(2), pages 204-230, March.
    2. Juan F. Rubio-Ramírez & Daniel F. Waggoner & Tao Zha, 2010. "Structural Vector Autoregressions: Theory of Identification and Algorithms for Inference," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 77(2), pages 665-696.
    3. Koop, Gary & Korobilis, Dimitris, 2010. "Bayesian Multivariate Time Series Methods for Empirical Macroeconomics," Foundations and Trends(R) in Econometrics, now publishers, vol. 3(4), pages 267-358, July.
    4. Ben S. Bernanke & Ilian Mihov, 1998. "Measuring Monetary Policy," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 113(3), pages 869-902.
    5. Del Negro, Marco & Schorfheide, Frank & Smets, Frank & Wouters, Rafael, 2007. "On the Fit of New Keynesian Models," Journal of Business & Economic Statistics, American Statistical Association, vol. 25, pages 123-143, April.
    6. Ben S. Bernanke & Mark Gertler & Mark Watson, 1997. "Systematic Monetary Policy and the Effects of Oil Price Shocks," Brookings Papers on Economic Activity, Economic Studies Program, The Brookings Institution, vol. 28(1), pages 91-157.
    7. Sims, Christopher A. & Zha, Tao, 2006. "Does Monetary Policy Generate Recessions?," Macroeconomic Dynamics, Cambridge University Press, vol. 10(2), pages 231-272, April.
    8. Domenico Giannone & Michele Lenza & Giorgio E. Primiceri, 2015. "Prior Selection for Vector Autoregressions," The Review of Economics and Statistics, MIT Press, vol. 97(2), pages 436-451, May.
    9. Karlsson, Sune, 2013. "Forecasting with Bayesian Vector Autoregression," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 791-897, Elsevier.
    10. Litterman, Robert B, 1986. "Forecasting with Bayesian Vector Autoregressions-Five Years of Experience," Journal of Business & Economic Statistics, American Statistical Association, vol. 4(1), pages 25-38, January.
    11. Christiane Baumeister & James D. Hamilton, 2015. "Sign Restrictions, Structural Vector Autoregressions, and Useful Prior Information," Econometrica, Econometric Society, vol. 83(5), pages 1963-1999, September.
    12. Giorgio E. Primiceri, 2005. "Time Varying Structural Vector Autoregressions and Monetary Policy," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 72(3), pages 821-852.
    13. Christiano, Lawrence J, 2002. "Solving Dynamic Equilibrium Models by a Method of Undetermined Coefficients," Computational Economics, Springer;Society for Computational Economics, vol. 20(1-2), pages 21-55, October.
    14. Waggoner, Daniel F. & Zha, Tao, 2003. "A Gibbs sampler for structural vector autoregressions," Journal of Economic Dynamics and Control, Elsevier, vol. 28(2), pages 349-366, November.
    15. Christopher A. Sims & Tao Zha, 2006. "Were There Regime Switches in U.S. Monetary Policy?," American Economic Review, American Economic Association, vol. 96(1), pages 54-81, March.
    16. Sims, Christopher A, 1980. "Macroeconomics and Reality," Econometrica, Econometric Society, vol. 48(1), pages 1-48, January.
    17. Kilian,Lutz & Lütkepohl,Helmut, 2018. "Structural Vector Autoregressive Analysis," Cambridge Books, Cambridge University Press, number 9781107196575, January.
    18. George, Edward I. & Sun, Dongchu & Ni, Shawn, 2008. "Bayesian stochastic search for VAR model restrictions," Journal of Econometrics, Elsevier, vol. 142(1), pages 553-580, January.
    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. Miranda-Agrippino, Silvia & Ricco, Giovanni, 2018. "Bayesian Vector Autoregressions," The Warwick Economics Research Paper Series (TWERPS) 1159, University of Warwick, Department of Economics.
    2. repec:hal:spmain:info:hdl:2441/27od5pb99881folvtfs8s3k16l is not listed on IDEAS
    3. repec:spo:wpmain:info:hdl:2441/27od5pb99881folvtfs8s3k16l is not listed on IDEAS
    4. Karlsson, Sune, 2013. "Forecasting with Bayesian Vector Autoregression," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 791-897, Elsevier.
    5. Arias, Jonas E. & Caldara, Dario & Rubio-Ramírez, Juan F., 2019. "The systematic component of monetary policy in SVARs: An agnostic identification procedure," Journal of Monetary Economics, Elsevier, vol. 101(C), pages 1-13.
    6. Gary Koop, 2012. "Using VARs and TVP-VARs with Many Macroeconomic Variables," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 4(3), pages 143-167, September.
    7. Andrea Carriero & Todd E. Clark & Massimiliano Marcellino, 2016. "Large Vector Autoregressions with Stochastic Volatility and Flexible Priors," Working Papers (Old Series) 1617, Federal Reserve Bank of Cleveland.
    8. Martin Bruns & Michele Piffer, 2018. "Bayesian Structural VAR models: a new approach for prior beliefs on impulse responses," Working Papers 878, Queen Mary University of London, School of Economics and Finance.
    9. Magnus Reif, 2020. "Macroeconomics, Nonlinearities, and the Business Cycle," ifo Beiträge zur Wirtschaftsforschung, ifo Institute - Leibniz Institute for Economic Research at the University of Munich, number 87, March.
    10. Tomasz Woźniak, 2016. "Bayesian Vector Autoregressions," Australian Economic Review, The University of Melbourne, Melbourne Institute of Applied Economic and Social Research, vol. 49(3), pages 365-380, September.
    11. Leeper, Eric M. & Zha, Tao, 2003. "Modest policy interventions," Journal of Monetary Economics, Elsevier, vol. 50(8), pages 1673-1700, November.
    12. Koop, Gary & Korobilis, Dimitris & Pettenuzzo, Davide, 2019. "Bayesian compressed vector autoregressions," Journal of Econometrics, Elsevier, vol. 210(1), pages 135-154.
    13. Dimitris Korobilis, 2020. "Sign restrictions in high-dimensional vector autoregressions," Working Paper series 20-09, Rimini Centre for Economic Analysis.
    14. Ramey, V.A., 2016. "Macroeconomic Shocks and Their Propagation," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 71-162, Elsevier.
    15. Herwartz, Helmut & Rohloff, Hannes & Wang, Shu, 2022. "Proxy SVAR identification of monetary policy shocks - Monte Carlo evidence and insights for the US," Journal of Economic Dynamics and Control, Elsevier, vol. 139(C).
    16. Prüser Jan & Hanck Christoph, 2021. "A Comparison of Approaches to Select the Informativeness of Priors in BVARs," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 241(4), pages 501-525, August.
    17. Domenico Giannone & Michele Lenza & Giorgio E. Primiceri, 2015. "Prior Selection for Vector Autoregressions," The Review of Economics and Statistics, MIT Press, vol. 97(2), pages 436-451, May.
    18. Hou, Chenghan, 2024. "Large Bayesian SVARs with linear restrictions," Journal of Econometrics, Elsevier, vol. 244(1).
    19. Marek Jarociński & Bartosz Maćkowiak, 2017. "Granger Causal Priority and Choice of Variables in Vector Autoregressions," The Review of Economics and Statistics, MIT Press, vol. 99(2), pages 319-329, May.
    20. Fink, Fabian & Schüler, Yves S., 2015. "The transmission of US systemic financial stress: Evidence for emerging market economies," Journal of International Money and Finance, Elsevier, vol. 55(C), pages 6-26.
    21. Laura Liu & Christian Matthes & Katerina Petrova, 2022. "Monetary Policy Across Space and Time," Advances in Econometrics, in: Essays in Honour of Fabio Canova, volume 44, pages 37-64, Emerald Group Publishing Limited.
    22. Tomasz Wozniak, 2016. "Rare Events and Risk Perception: Evidence from Fukushima Accident," Department of Economics - Working Papers Series 2021, The University of Melbourne.

    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:spr:compst:v:39:y:2024:i:7:d:10.1007_s00180-024-01492-3. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.