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

Mixed Frequency Data Sampling Regression Models: The R Package midasr

Author

Listed:
  • Ghysels, Eric
  • Kvedaras, Virmantas
  • Zemlys, Vaidotas

Abstract

When modeling economic relationships it is increasingly common to encounter data sampled at different frequencies. We introduce the R package midasr which enables estimating regression models with variables sampled at different frequencies within a MIDAS regression framework put forward in work by Ghysels, Santa-Clara, and Valkanov (2002). In this article we define a general autoregressive MIDAS regression model with multiple variables of different frequencies and show how it can be specified using the familiar R formula interface and estimated using various optimization methods chosen by the researcher. We discuss how to check the validity of the estimated model both in terms of numerical convergence and statistical adequacy of a chosen regression specification, how to perform model selection based on a information criterion, how to assess forecasting accuracy of the MIDAS regression model and how to obtain a forecast aggregation of different MIDAS regression models. We illustrate the capabilities of the package with a simulated MIDAS regression model and give two empirical examples of application of MIDAS regression.

Suggested Citation

  • Ghysels, Eric & Kvedaras, Virmantas & Zemlys, Vaidotas, 2016. "Mixed Frequency Data Sampling Regression Models: The R Package midasr," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 72(i04).
  • Handle: RePEc:jss:jstsof:v:072:i04
    DOI: http://hdl.handle.net/10.18637/jss.v072.i04
    as

    Download full text from publisher

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

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v072i04/midasr_0.6.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v072i04/v72i04.R
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Ghysels, Eric & Kvedaras, Virmantas & Zemlys, Vaidotas, 2016. "Mixed Frequency Data Sampling Regression Models: The R Package midasr," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 72(i04).
    2. Nash, John C. & Varadhan, Ravi, 2011. "Unifying Optimization Algorithms to Aid Software System Users: optimx for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 43(i09).
    3. Claudia Foroni & Massimiliano Marcellino & Christian Schumacher, 2015. "Unrestricted mixed data sampling (MIDAS): MIDAS regressions with unrestricted lag polynomials," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 178(1), pages 57-82, January.
    4. Fulvio Corsi, 2009. "A Simple Approximate Long-Memory Model of Realized Volatility," Journal of Financial Econometrics, Society for Financial Econometrics, vol. 7(2), pages 174-196, Spring.
    5. Kvedaras, Virmantas & Zemlys, Vaidotas, 2012. "Testing the functional constraints on parameters in regressions with variables of different frequency," Economics Letters, Elsevier, vol. 116(2), pages 250-254.
    6. Wohlrabe, Klaus, 2009. "Forecasting with mixed-frequency time series models," Munich Dissertations in Economics 9681, University of Munich, Department of Economics.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Hale, Galina & Lopez, Jose A., 2019. "Monitoring banking system connectedness with big data," Journal of Econometrics, Elsevier, vol. 212(1), pages 203-220.
    2. Nuttanan Wichitaksorn, 2020. "Analyzing and Forecasting Thai Macroeconomic Data using Mixed-Frequency Approach," PIER Discussion Papers 146, Puey Ungphakorn Institute for Economic Research, revised Dec 2020.
    3. Gustavo Adolfo HERNANDEZ DIAZ & Margarita MARÍN JARAMILLO, 2016. "Pronóstico del Consumo Privado: Usando datos de alta frecuencia para el pronóstico de variables de baja frecuencia," Archivos de Economía 014828, Departamento Nacional de Planeación.
    4. Layna Mosley & Victoria Paniagua & Erik Wibbels, 2020. "Moving markets? Government bond investors and microeconomic policy changes," Economics and Politics, Wiley Blackwell, vol. 32(2), pages 197-249, July.
    5. Ghysels, Eric & Hill, Jonathan B. & Motegi, Kaiji, 2020. "Testing a large set of zero restrictions in regression models, with an application to mixed frequency Granger causality," Journal of Econometrics, Elsevier, vol. 218(2), pages 633-654.
    6. Qian Chen & Xiang Gao & Shan Xie & Li Sun & Shuairu Tian & Shigeyuki Hamori, 2021. "On the Predictability of China Macro Indicator with Carbon Emissions Trading," Energies, MDPI, Open Access Journal, vol. 14(5), pages 1-24, February.
    7. Kyosuke Chikamatsu, Naohisa Hirakata, Yosuke Kido, Kazuki Otaka, 2018. "Nowcasting Japanese GDPs," Bank of Japan Working Paper Series 18-E-18, Bank of Japan.
    8. Stankevich, Ivan, 2020. "Comparison of macroeconomic indicators nowcasting methods: Russian GDP case," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 59, pages 113-127.
    9. Katerina Volchek & Anyu Liu & Haiyan Song & Dimitrios Buhalis, 2019. "Forecasting tourist arrivals at attractions: Search engine empowered methodologies," Tourism Economics, , vol. 25(3), pages 425-447, May.
    10. Seong, Byeongchan, 2020. "Smoothing and forecasting mixed-frequency time series with vector exponential smoothing models," Economic Modelling, Elsevier, vol. 91(C), pages 463-468.
    11. Chikamatsu, Kyosuke & Hirakata, Naohisa & Kido, Yosuke & Otaka, Kazuki, 2021. "Mixed-frequency approaches to nowcasting GDP: An application to Japan," Japan and the World Economy, Elsevier, vol. 57(C).
    12. Afees A. Salisu & Raymond Swaray, 2020. "Forecasting the Return Volatility of Energy Prices: A GARCH-MIDAS Approach," World Scientific Book Chapters, in: Stéphane Goutte & Duc Khuong Nguyen (ed.), HANDBOOK OF ENERGY FINANCE Theories, Practices and Simulations, chapter 3, pages 47-71, World Scientific Publishing Co. Pte. Ltd..
    13. Julián Alonso Cárdenas-Cárdenas & Edgar Caicedo-García & Eliana R. González Molano, 2020. "Estimación de la variación del precio de los alimentos con modelos de frecuencias mixtas," Borradores de Economia 1109, Banco de la Republica de Colombia.
    14. Isao Ishida & Virmantas Kvedaras, 2015. "Modeling Autoregressive Processes with Moving-Quantiles-Implied Nonlinearity," Econometrics, MDPI, Open Access Journal, vol. 3(1), pages 1-53, January.
    15. Ghysels, Eric & Kvedaras, Virmantas & Zemlys, Vaidotas, 2016. "Mixed Frequency Data Sampling Regression Models: The R Package midasr," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 72(i04).
    16. Laine, Olli-Matti & Lindblad, Annika, 2020. "Nowcasting Finnish GDP growth using financial variables: a MIDAS approach," BoF Economics Review 4/2020, Bank of Finland.
    17. Ghysels, Eric & Qian, Hang, 2019. "Estimating MIDAS regressions via OLS with polynomial parameter profiling," Econometrics and Statistics, Elsevier, vol. 9(C), pages 1-16.
    18. Bhaghoe, S. & Ooft, G. & Franses, Ph.H.B.F., 2019. "Estimates of quarterly GDP growth using MIDAS regressions," Econometric Institute Research Papers EI2019-29, Erasmus University Rotterdam, Erasmus School of Economics (ESE), Econometric Institute.
    19. Jiang, Cuixia & Xiong, Wei & Xu, Qifa & Liu, Yezheng, 2021. "Predicting default of listed companies in mainland China via U-MIDAS Logit model with group lasso penalty," Finance Research Letters, Elsevier, vol. 38(C).
    20. Xu, Qifa & Chen, Lu & Jiang, Cuixia & Yu, Keming, 2020. "Mixed data sampling expectile regression with applications to measuring financial risk," Economic Modelling, Elsevier, vol. 91(C), pages 469-486.

    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. Denisa BANULESCU-RADU & Laurent FERRARA & Clément MARSILLI, 2019. "Prévoir la volatilité d’un actif financier à l’aide d’un modèle à mélange de fréquences," LEO Working Papers / DR LEO 2710, Orleans Economics Laboratory / Laboratoire d'Economie d'Orleans (LEO), University of Orleans.
    2. Ghysels, Eric & Qian, Hang, 2019. "Estimating MIDAS regressions via OLS with polynomial parameter profiling," Econometrics and Statistics, Elsevier, vol. 9(C), pages 1-16.
    3. Kyosuke Chikamatsu, Naohisa Hirakata, Yosuke Kido, Kazuki Otaka, 2018. "Nowcasting Japanese GDPs," Bank of Japan Working Paper Series 18-E-18, Bank of Japan.
    4. Jiang, Cuixia & Xiong, Wei & Xu, Qifa & Liu, Yezheng, 2021. "Predicting default of listed companies in mainland China via U-MIDAS Logit model with group lasso penalty," Finance Research Letters, Elsevier, vol. 38(C).
    5. Tim Bollerslev & Benjamin Hood & John Huss & Lasse Heje Pedersen, 2018. "Risk Everywhere: Modeling and Managing Volatility," Review of Financial Studies, Society for Financial Studies, vol. 31(7), pages 2729-2773.
    6. Davide Pettenuzzo & Rossen Valkanov & Allan Timmermann, 2014. "A Bayesian MIDAS Approach to Modeling First and Second Moment Dynamics," Working Papers 76, Brandeis University, Department of Economics and International Businesss School.
    7. Laine, Olli-Matti & Lindblad, Annika, 2020. "Nowcasting Finnish GDP growth using financial variables: a MIDAS approach," BoF Economics Review 4/2020, Bank of Finland.
    8. Qian Chen & Xiang Gao & Shan Xie & Li Sun & Shuairu Tian & Shigeyuki Hamori, 2021. "On the Predictability of China Macro Indicator with Carbon Emissions Trading," Energies, MDPI, Open Access Journal, vol. 14(5), pages 1-24, February.
    9. Götz, Thomas B. & Hecq, Alain & Smeekes, Stephan, 2016. "Testing for Granger causality in large mixed-frequency VARs," Journal of Econometrics, Elsevier, vol. 193(2), pages 418-432.
    10. Xu, Qifa & Chen, Lu & Jiang, Cuixia & Yu, Keming, 2020. "Mixed data sampling expectile regression with applications to measuring financial risk," Economic Modelling, Elsevier, vol. 91(C), pages 469-486.
    11. Isao Ishida & Virmantas Kvedaras, 2015. "Modeling Autoregressive Processes with Moving-Quantiles-Implied Nonlinearity," Econometrics, MDPI, Open Access Journal, vol. 3(1), pages 1-53, January.
    12. Chikamatsu, Kyosuke & Hirakata, Naohisa & Kido, Yosuke & Otaka, Kazuki, 2021. "Mixed-frequency approaches to nowcasting GDP: An application to Japan," Japan and the World Economy, Elsevier, vol. 57(C).
    13. Julián Alonso Cárdenas-Cárdenas & Edgar Caicedo-García & Eliana R. González Molano, 2020. "Estimación de la variación del precio de los alimentos con modelos de frecuencias mixtas," Borradores de Economia 1109, Banco de la Republica de Colombia.
    14. Bhaghoe, S. & Ooft, G. & Franses, Ph.H.B.F., 2019. "Estimates of quarterly GDP growth using MIDAS regressions," Econometric Institute Research Papers EI2019-29, Erasmus University Rotterdam, Erasmus School of Economics (ESE), Econometric Institute.
    15. Nuttanan Wichitaksorn, 2020. "Analyzing and Forecasting Thai Macroeconomic Data using Mixed-Frequency Approach," PIER Discussion Papers 146, Puey Ungphakorn Institute for Economic Research, revised Dec 2020.
    16. Hancock, Joana & Vieira, Sara & Lima, Hipólito & Schmitt, Vanessa & Pereira, Jaconias & Rebelo, Rui & Girondot, Marc, 2019. "Overcoming field monitoring restraints in estimating marine turtle internesting period by modelling individual nesting behaviour using capture-mark-recapture data," Ecological Modelling, Elsevier, vol. 402(C), pages 76-84.
    17. Asai Manabu & So Mike K.P., 2015. "Long Memory and Asymmetry for Matrix-Exponential Dynamic Correlation Processes," Journal of Time Series Econometrics, De Gruyter, vol. 7(1), pages 1-26, January.
    18. Christophe Chorro & Florian Ielpo & Benoît Sévi, 2017. "The contribution of jumps to forecasting the density of returns," Post-Print halshs-01442618, HAL.
    19. Gkillas, Konstantinos & Gupta, Rangan & Pierdzioch, Christian, 2020. "Forecasting realized oil-price volatility: The role of financial stress and asymmetric loss," Journal of International Money and Finance, Elsevier, vol. 104(C).
    20. Xilong Chen & Eric Ghysels, 2011. "News--Good or Bad--and Its Impact on Volatility Predictions over Multiple Horizons," Review of Financial Studies, Society for Financial Studies, vol. 24(1), pages 46-81, October.

    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:072:i04. See general information about how to correct material in RePEc.

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

    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 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.

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

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.