[go: up one dir, main page]

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

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v072.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. Nash, John C., 2014. "On Best Practice Optimization Methods in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 60(i02).
    2. Fulvio Corsi, 2009. "A Simple Approximate Long-Memory Model of Realized Volatility," Journal of Financial Econometrics, Oxford University Press, vol. 7(2), pages 174-196, Spring.
    3. 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.
    4. Wohlrabe, Klaus, 2009. "Forecasting with mixed-frequency time series models," Munich Dissertations in Economics 9681, University of Munich, Department of Economics.
    5. Clements, Michael P & Galvão, Ana Beatriz, 2008. "Macroeconomic Forecasting With Mixed-Frequency Data," Journal of Business & Economic Statistics, American Statistical Association, vol. 26, pages 546-554.
    6. Zeileis, Achim, 2004. "Econometric Computing with HC and HAC Covariance Matrix Estimators," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 11(i10).
    7. 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).
    8. 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.
    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. 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 Business School.
    2. 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.
    3. Denisa Georgiana Banulescu & Ferrara Laurent & Marsilli Clément, 2019. "Prévoir la volatilité d’un actif financier à l’aide d’un modèle à mélange de fréquences," Working Papers hal-03563168, HAL.
    4. 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).
    5. Claudia Foroni & Massimiliano Marcellino, 2013. "A survey of econometric methods for mixed-frequency data," Economics Working Papers ECO2013/02, European University Institute.
    6. Khalaf, Lynda & Kichian, Maral & Saunders, Charles J. & Voia, Marcel, 2021. "Dynamic panels with MIDAS covariates: Nonlinearity, estimation and fit," Journal of Econometrics, Elsevier, vol. 220(2), pages 589-605.
    7. Degiannakis, Stavros & Filis, George, 2018. "Forecasting oil prices: High-frequency financial data are indeed useful," Energy Economics, Elsevier, vol. 76(C), pages 388-402.
    8. Deschamps, Bruno & Ioannidis, Christos & Ka, Kook, 2020. "High-frequency credit spread information and macroeconomic forecast revision," International Journal of Forecasting, Elsevier, vol. 36(2), pages 358-372.
    9. Klaus Wohlrabe, 2011. "Konstruktion von Indikatoren zur Analyse der wirtschaftlichen Aktivität in den Dienstleistungsbereichen," ifo Forschungsberichte, ifo Institute - Leibniz Institute for Economic Research at the University of Munich, number 55, October.
    10. Miller, J. Isaac, 2018. "Simple robust tests for the specification of high-frequency predictors of a low-frequency series," Econometrics and Statistics, Elsevier, vol. 5(C), pages 45-66.
    11. Tim Bollerslev & Benjamin Hood & John Huss & Lasse Heje Pedersen, 2018. "Risk Everywhere: Modeling and Managing Volatility," The Review of Financial Studies, Society for Financial Studies, vol. 31(7), pages 2729-2773.
    12. Stefan Neuwirth, 2017. "Time-varying mixed frequency forecasting: A real-time experiment," KOF Working papers 17-430, KOF Swiss Economic Institute, ETH Zurich.
    13. Demirer, Riza & Gkillas, Konstantinos & Gupta, Rangan & Pierdzioch, Christian, 2019. "Time-varying risk aversion and realized gold volatility," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    14. Sarun Kamolthip, 2021. "Macroeconomic Forecasting with LSTM and Mixed Frequency Time Series Data," PIER Discussion Papers 165, Puey Ungphakorn Institute for Economic Research.
    15. Zhang, Yue-Jun & Wang, Jin-Li, 2019. "Do high-frequency stock market data help forecast crude oil prices? Evidence from the MIDAS models," Energy Economics, Elsevier, vol. 78(C), pages 192-201.
    16. Jon Ellingsen & Vegard H. Larsen & Leif Anders Thorsrud, 2020. "News Media vs. FRED-MD for Macroeconomic Forecasting," CESifo Working Paper Series 8639, CESifo.
    17. Wolfgang Nierhaus & Timo Wollmershäuser, 2016. "ifo Konjunkturumfragen und Konjunkturanalyse: Band II," ifo Forschungsberichte, ifo Institute - Leibniz Institute for Economic Research at the University of Munich, number 72, October.
    18. Thomas B. Götz & Alain W. Hecq, 2019. "Granger Causality Testing in Mixed‐Frequency VARs with Possibly (Co)Integrated Processes," Journal of Time Series Analysis, Wiley Blackwell, vol. 40(6), pages 914-935, November.
    19. Schumacher, Christian, 2016. "A comparison of MIDAS and bridge equations," International Journal of Forecasting, Elsevier, vol. 32(2), pages 257-270.
    20. Bec, Frédérique & Mogliani, Matteo, 2015. "Nowcasting French GDP in real-time with surveys and “blocked” regressions: Combining forecasts or pooling information?," International Journal of Forecasting, Elsevier, vol. 31(4), pages 1021-1042.

    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.

    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.