IDEAS home Printed from https://ideas.repec.org/a/eee/quaeco/v80y2021icp693-720.html

Panel vector autoregression in R with the package panelvar

Author

Listed:
  • Sigmund, Michael
  • Ferstl, Robert

Abstract

In this paper we extend two general methods of moment (GMM) estimators to panel vector autoregression models (PVAR) with p lags of endogenous variables, predetermined and strictly exogenous variables. We first extend the first difference GMM estimator to this extended PVAR model. Second, we do the same for the system GMM estimator. We implement these estimators in the R package panelvar. In addition to the GMM estimators, we contribute to the empirical literature by implementing common specification tests (Hansen overidentification test, lag selection criterion and stability test of the PVAR polynomial) and classical structural analysis for PVAR models such as orthogonal and generalized impulse response functions, bootstrapped confidence intervals for impulse response analysis and forecast error variance decompositions. Finally, we implement the first difference and the forward orthogonal transformation to remove the fixed effects.

Suggested Citation

  • Sigmund, Michael & Ferstl, Robert, 2021. "Panel vector autoregression in R with the package panelvar," The Quarterly Review of Economics and Finance, Elsevier, vol. 80(C), pages 693-720.
  • Handle: RePEc:eee:quaeco:v:80:y:2021:i:c:p:693-720
    DOI: 10.1016/j.qref.2019.01.001
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S1062976918301467
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.qref.2019.01.001?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

    for a different version of it.

    References listed on IDEAS

    as
    1. Hansen, Lars Peter, 1982. "Large Sample Properties of Generalized Method of Moments Estimators," Econometrica, Econometric Society, vol. 50(4), pages 1029-1054, July.
    2. Mehrhoff, Jens, 2009. "A solution to the problem of too many instruments in dynamic panel data GMM," Discussion Paper Series 1: Economic Studies 2009,31, Deutsche Bundesbank.
    3. Arellano, Manuel & Bover, Olympia, 1995. "Another look at the instrumental variable estimation of error-components models," Journal of Econometrics, Elsevier, vol. 68(1), pages 29-51, July.
    4. Koenker, Roger & Machado, Jose A. F., 1999. "GMM inference when the number of moment conditions is large," Journal of Econometrics, Elsevier, vol. 93(2), pages 327-344, December.
    5. Ruud, Paul A., 2000. "An Introduction to Classical Econometric Theory," OUP Catalogue, Oxford University Press, number 9780195111644.
    6. Michael R.M. Abrigo & Inessa Love, 2016. "Estimation of Panel Vector Autoregression in Stata: a Package of Programs," Working Papers 201602, University of Hawaii at Manoa, Department of Economics.
    7. Matz Dahlberg & Eva Johansson, 2000. "An examination of the dynamic behaviour of local governments using GMM bootstrapping methods," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 15(4), pages 401-416.
    8. Pesaran, H. Hashem & Shin, Yongcheol, 1998. "Generalized impulse response analysis in linear multivariate models," Economics Letters, Elsevier, vol. 58(1), pages 17-29, January.
    9. Javier Alvarez & Manuel Arellano, 2003. "The Time Series and Cross-Section Asymptotics of Dynamic Panel Data Estimators," Econometrica, Econometric Society, vol. 71(4), pages 1121-1159, July.
    10. Binder, Michael & Hsiao, Cheng & Pesaran, M. Hashem, 2005. "Estimation And Inference In Short Panel Vector Autoregressions With Unit Roots And Cointegration," Econometric Theory, Cambridge University Press, vol. 21(4), pages 795-837, August.
    11. Whitney K. Newey & Richard J. Smith, 2004. "Higher Order Properties of Gmm and Generalized Empirical Likelihood Estimators," Econometrica, Econometric Society, vol. 72(1), pages 219-255, January.
    12. 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).
    13. Holtz-Eakin, Douglas & Newey, Whitney & Rosen, Harvey S, 1988. "Estimating Vector Autoregressions with Panel Data," Econometrica, Econometric Society, vol. 56(6), pages 1371-1395, November.
    14. Croissant, Yves & Millo, Giovanni, 2008. "Panel Data Econometrics in R: The plm Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i02).
    15. Nickell, Stephen J, 1981. "Biases in Dynamic Models with Fixed Effects," Econometrica, Econometric Society, vol. 49(6), pages 1417-1426, November.
    16. Sims, Christopher A, 1980. "Macroeconomics and Reality," Econometrica, Econometric Society, vol. 48(1), pages 1-48, January.
    17. Love, Inessa & Zicchino, Lea, 2006. "Financial development and dynamic investment behavior: Evidence from panel VAR," The Quarterly Review of Economics and Finance, Elsevier, vol. 46(2), pages 190-210, May.
    18. Hansen, Lars Peter, 2012. "Proofs for large sample properties of generalized method of moments estimators," Journal of Econometrics, Elsevier, vol. 170(2), pages 325-330.
    19. K. Newey, Whitney, 1985. "Generalized method of moments specification testing," Journal of Econometrics, Elsevier, vol. 29(3), pages 229-256, September.
    20. Michael R. M. Abrigo & Inessa Love, 2016. "Estimation of panel vector autoregression in Stata," Stata Journal, StataCorp LLC, vol. 16(3), pages 778-804, September.
    21. Andrews, Donald W. K. & Lu, Biao, 2001. "Consistent model and moment selection procedures for GMM estimation with application to dynamic panel data models," Journal of Econometrics, Elsevier, vol. 101(1), pages 123-164, March.
    22. David Roodman, 2009. "A Note on the Theme of Too Many Instruments," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 71(1), pages 135-158, February.
    23. Manuel Arellano & Stephen Bond, 1991. "Some Tests of Specification for Panel Data: Monte Carlo Evidence and an Application to Employment Equations," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 58(2), pages 277-297.
    24. Blundell, Richard & Bond, Stephen, 1998. "Initial conditions and moment restrictions in dynamic panel data models," Journal of Econometrics, Elsevier, vol. 87(1), pages 115-143, August.
    25. G. Kapetanios, 2008. "A bootstrap procedure for panel data sets with many cross-sectional units," Econometrics Journal, Royal Economic Society, vol. 11(2), pages 377-395, July.
    26. Windmeijer, Frank, 2005. "A finite sample correction for the variance of linear efficient two-step GMM estimators," Journal of Econometrics, Elsevier, vol. 126(1), pages 25-51, May.
    27. Mehrhoff, Jens, 2009. "A solution to the problem of too many instruments in dynamic panel data GMM," IBES Diskussionsbeiträge 171, University of Duisburg-Essen, Institute of Business and Economic Studie (IBES).
    28. Anderson, T. W. & Hsiao, Cheng, 1982. "Formulation and estimation of dynamic models using panel data," Journal of Econometrics, Elsevier, vol. 18(1), pages 47-82, January.
    29. David Roodman, 2009. "How to do xtabond2: An introduction to difference and system GMM in Stata," Stata Journal, StataCorp LLC, vol. 9(1), pages 86-136, March.
    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. Lea Steininger & Michael Sigmund, 2020. "Reciprocity in bank regulatory reforms and income inequality: first evidence from a panel vector autoregression analysis," Empirical Economics, Springer, vol. 59(4), pages 1537-1572, October.
    2. Le Thanh Ha, 2025. "Deploying green macroprudential policies to promote environmental health: new findings from panel VAR for international database," Environment Systems and Decisions, Springer, vol. 45(3), pages 1-21, September.
    3. Lips, Johannes, 2018. "Debt and the Oil Industry - Analysis on the Firm and Production Level," VfS Annual Conference 2018 (Freiburg, Breisgau): Digital Economy 181504, Verein für Socialpolitik / German Economic Association.
    4. Ha, Le Thanh, 2025. "Reconsider the role of digital revolution in public sector during the time of climate risk: Fresh insights from panel autoregression model," Technological Forecasting and Social Change, Elsevier, vol. 219(C).
    5. Hertweck, Matthias & Brey, Bjoern, 2017. "The Persistent Effects of Monsoon Rainfall Shocks in India: A Nonlinear VAR Approach," VfS Annual Conference 2017 (Vienna): Alternative Structures for Money and Banking 168256, Verein für Socialpolitik / German Economic Association.
    6. Maurice J.G. Bun & Sarafidis, V., 2013. "Dynamic Panel Data Models," UvA-Econometrics Working Papers 13-01, Universiteit van Amsterdam, Dept. of Econometrics.
    7. Youssef, Ahmed & Abonazel, Mohamed R., 2015. "Alternative GMM Estimators for First-order Autoregressive Panel Model: An Improving Efficiency Approach," MPRA Paper 68674, University Library of Munich, Germany.
    8. Kacou Yves Thierry Kacou & Yacouba Kassouri & Andrew Adewale Alola & Mehmet Altuntaş, 2022. "Examining the sustainable development approach of migrants' remittances and financial development in sub‐Saharan African countries," Sustainable Development, John Wiley & Sons, Ltd., vol. 30(5), pages 804-816, October.
    9. Al-Jahwari, Salim Ahmed Said, 2021. "Does the Twin-Deficits doctrine apply to the Gulf Cooperation Council? A dynamic panel VAR-X model approach," MPRA Paper 111232, University Library of Munich, Germany.
    10. Zouaoui, Haykel & Zoghlami, Feten, 2020. "On the income diversification and bank market power nexus in the MENA countries: Evidence from a GMM panel-VAR approach," Research in International Business and Finance, Elsevier, vol. 52(C).
    11. Sebastian Kripfganz & Claudia Schwarz, 2019. "Estimation of linear dynamic panel data models with time‐invariant regressors," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 34(4), pages 526-546, June.
    12. Ryan H. Murphy & Colin O’Reilly, 2019. "Applying panel vector autoregression to institutions, human capital, and output," Empirical Economics, Springer, vol. 57(5), pages 1633-1652, November.
    13. Canarella, Giorgio & Miller, Stephen M., 2018. "The determinants of growth in the U.S. information and communication technology (ICT) industry: A firm-level analysis," Economic Modelling, Elsevier, vol. 70(C), pages 259-271.
    14. Emna Trabelsi, 2022. "Macroprudential Transparency and Price Stability in Emerging and Developing Countries," Journal of Central Banking Theory and Practice, Central bank of Montenegro, vol. 11(1), pages 105-129.
    15. Nguyen Thi Tuong Anh & Hung Quang Doan & Tuan Anh Bui & Nam Hoang Vu & Duong Thuy Thanh Le, 2022. "A Revisit of Motives for Chinese Outward Foreign Direct Investment: The Role of the Institution in Host Countries," SAGE Open, , vol. 12(4), pages 21582440221, December.
    16. Abdulaleem Isiaka & Alexander Mihailov & Giovanni Razzi, 2022. "Distributional Effects of Public Spending and Tax Shocks in Middle-Income Countries: A Panel VAR Approach," Economics Discussion Papers em-dp2022-09, Department of Economics, University of Reading.
    17. David Roodman, 2009. "How to do xtabond2: An introduction to difference and system GMM in Stata," Stata Journal, StataCorp LLC, vol. 9(1), pages 86-136, March.
    18. Li, Shengfeng & Hoque, Hafiz & Thijssen, Jacco, 2021. "Firm financial behaviour dynamics and interactions: A structural vector autoregression approach," Journal of Corporate Finance, Elsevier, vol. 69(C).
    19. Bakhat, Mohcine & Labandeira, Xavier & Labeaga, José M. & López-Otero, Xiral, 2017. "Elasticities of transport fuels at times of economic crisis: An empirical analysis for Spain," Energy Economics, Elsevier, vol. 68(S1), pages 66-80.
    20. André Arnaud ENGUENE & Romaric Armel WEPAGUIEWE & Ouedraogo IDRISSA, 2025. "The dual effect of (Extractive) foreign direct investment on institutional quality in sub-Saharan Africa," SN Business & Economics, Springer, vol. 5(11), pages 1-29, November.

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    JEL classification:

    • G20 - Financial Economics - - Financial Institutions and Services - - - General
    • G30 - Financial Economics - - Corporate Finance and Governance - - - General

    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:eee:quaeco:v:80:y:2021:i:c:p:693-720. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/inca/620167 .

    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.