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

State Space Models in R

Author

Listed:
  • Petris, Giovanni
  • Petrone, Sonia

Abstract

We give an overview of some of the software tools available in R, either as built- in functions or contributed packages, for the analysis of state space models. Several illustrative examples are included, covering constant and time-varying models for both univariate and multivariate time series. Maximum likelihood and Bayesian methods to obtain parameter estimates are considered.

Suggested Citation

  • Petris, Giovanni & Petrone, Sonia, 2011. "State Space Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 41(i04).
  • Handle: RePEc:jss:jstsof:v:041:i04
    DOI: http://hdl.handle.net/10.18637/jss.v041.i04
    as

    Download full text from publisher

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

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v041i04/v41i04.R
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v041i04/P.txt
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v041.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. Hyndman, Rob J. & Khandakar, Yeasmin, 2008. "Automatic Time Series Forecasting: The forecast Package for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i03).
    2. Commandeur, Jacques J. F. & Koopman, Siem Jan & Ooms, Marius, 2011. "Statistical Software for State Space Methods," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 41(i01).
    3. Tusell, Fernando, 2011. "Kalman Filtering in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 39(i02).
    4. Håvard Rue & Sara Martino & Nicolas Chopin, 2009. "Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 71(2), pages 319-392, April.
    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. Helske, Jouni, 2017. "KFAS: Exponential Family State Space Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 78(i10).
    2. Jong-Min Kim & Bainwen Sun & Sunghae Jun, 2019. "Sustainable Technology Analysis Using Data Envelopment Analysis and State Space Models," Sustainability, MDPI, vol. 11(13), pages 1-19, June.
    3. Akın, Melda, 2015. "A novel approach to model selection in tourism demand modeling," Tourism Management, Elsevier, vol. 48(C), pages 64-72.
    4. Lammerding, Marc & Stephan, Patrick & Trede, Mark & Wilfling, Bernd, 2013. "Speculative bubbles in recent oil price dynamics: Evidence from a Bayesian Markov-switching state-space approach," Energy Economics, Elsevier, vol. 36(C), pages 491-502.
    5. Schütz, Peter & Westgaard, Sjur, 2018. "Optimal hedging strategies for salmon producers," Journal of Commodity Markets, Elsevier, vol. 12(C), pages 60-70.
    6. Gómez, Victor, 2015. "SSMMATLAB: A Set of MATLAB Programs for the Statistical Analysis of State Space Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 66(i09).
    7. repec:jss:jstsof:41:i01 is not listed on IDEAS
    8. Strickland, Christopher & Burdett, Robert & Mengersen, Kerrie & Denham, Robert, 2014. "PySSM: A Python Module for Bayesian Inference of Linear Gaussian State Space Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 57(i06).
    9. Allin Cottrell & Riccardo (Jack) Lucchetti & Matteo Pelagatti, 2016. "Measures of variance for smoothed disturbances in linear state-space models: a clarification," gretl working papers 3, Universita' Politecnica delle Marche (I), Dipartimento di Scienze Economiche e Sociali.
    10. Al Hajj Hassan, Lama & Mahmassani, Hani S. & Chen, Ying, 2020. "Reinforcement learning framework for freight demand forecasting to support operational planning decisions," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 137(C).
    11. Cristiana Tudor, 2016. "Predicting the Evolution of CO 2 Emissions in Bahrain with Automated Forecasting Methods," Sustainability, MDPI, vol. 8(9), pages 1-10, September.

    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. Zietz, Joachim & Traian, Anca, 2014. "When was the U.S. housing downturn predictable? A comparison of univariate forecasting methods," The Quarterly Review of Economics and Finance, Elsevier, vol. 54(2), pages 271-281.
    2. repec:jss:jstsof:41:i04 is not listed on IDEAS
    3. 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).
    4. Nikoline N. Knudsen & Jörg Schullehner & Birgitte Hansen & Lisbeth F. Jørgensen & Søren M. Kristiansen & Denitza D. Voutchkova & Thomas A. Gerds & Per K. Andersen & Kristine Bihrmann & Morten Grønbæk , 2017. "Lithium in Drinking Water and Incidence of Suicide: A Nationwide Individual-Level Cohort Study with 22 Years of Follow-Up," IJERPH, MDPI, vol. 14(6), pages 1-13, June.
    5. Rob Hyndman & Heather Booth & Farah Yasmeen, 2013. "Coherent Mortality Forecasting: The Product-Ratio Method With Functional Time Series Models," Demography, Springer;Population Association of America (PAA), vol. 50(1), pages 261-283, February.
    6. Nahapetyan Yervand, 2019. "The benefits of the Velvet Revolution in Armenia: Estimation of the short-term economic gains using deep neural networks," Central European Economic Journal, Sciendo, vol. 6(53), pages 286-303, January.
    7. Barrow, Devon & Kourentzes, Nikolaos, 2018. "The impact of special days in call arrivals forecasting: A neural network approach to modelling special days," European Journal of Operational Research, Elsevier, vol. 264(3), pages 967-977.
    8. Leonardo Padilla & Bernado Lagos‐Álvarez & Jorge Mateu & Emilio Porcu, 2020. "Space‐time autoregressive estimation and prediction with missing data based on Kalman filtering," Environmetrics, John Wiley & Sons, Ltd., vol. 31(7), November.
    9. Scott, Ryan P. & Scott, Tyler A., 2019. "Investing in collaboration for safety: Assessing grants to states for oil and gas distribution pipeline safety program enhancement," Energy Policy, Elsevier, vol. 124(C), pages 332-345.
    10. Cho, Daegon & Hwang, Youngdeok & Park, Jongwon, 2018. "More buzz, more vibes: Impact of social media on concert distribution," Journal of Economic Behavior & Organization, Elsevier, vol. 156(C), pages 103-113.
    11. Dombi, József & Jónás, Tamás & Tóth, Zsuzsanna Eszter, 2018. "Modeling and long-term forecasting demand in spare parts logistics businesses," International Journal of Production Economics, Elsevier, vol. 201(C), pages 1-17.
    12. Amita Gajewar & Gagan Bansal, 2016. "Revenue Forecasting for Enterprise Products," Papers 1701.06624, arXiv.org.
    13. Tao XIONG & Chongguang LI & Yukun BAO, 2017. "An improved EEMD-based hybrid approach for the short-term forecasting of hog price in China," Agricultural Economics, Czech Academy of Agricultural Sciences, vol. 63(3), pages 136-148.
    14. Pieter van der Spek & Chris Verhoef, 2014. "Balancing Time‐to‐Market and Quality in Embedded Systems," Systems Engineering, John Wiley & Sons, vol. 17(2), pages 166-192, June.
    15. Hewamalage, Hansika & Bergmeir, Christoph & Bandara, Kasun, 2021. "Recurrent Neural Networks for Time Series Forecasting: Current status and future directions," International Journal of Forecasting, Elsevier, vol. 37(1), pages 388-427.
    16. Brown, Paul T. & Joshi, Chaitanya & Joe, Stephen & Rue, Håvard, 2021. "A novel method of marginalisation using low discrepancy sequences for integrated nested Laplace approximations," Computational Statistics & Data Analysis, Elsevier, vol. 157(C).
    17. Hyndman, Rob J. & Ahmed, Roman A. & Athanasopoulos, George & Shang, Han Lin, 2011. "Optimal combination forecasts for hierarchical time series," Computational Statistics & Data Analysis, Elsevier, vol. 55(9), pages 2579-2589, September.
    18. Kourentzes, Nikolaos & Petropoulos, Fotios & Trapero, Juan R., 2014. "Improving forecasting by estimating time series structural components across multiple frequencies," International Journal of Forecasting, Elsevier, vol. 30(2), pages 291-302.
    19. Andre Python & Andreas Bender & Marta Blangiardo & Janine B. Illian & Ying Lin & Baoli Liu & Tim C.D. Lucas & Siwei Tan & Yingying Wen & Davit Svanidze & Jianwei Yin, 2022. "A downscaling approach to compare COVID‐19 count data from databases aggregated at different spatial scales," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(1), pages 202-218, January.
    20. Hossein Hassani & Emmanuel Sirimal Silva & Rangan Gupta & Mawuli K. Segnon, 2015. "Forecasting the price of gold," Applied Economics, Taylor & Francis Journals, vol. 47(39), pages 4141-4152, August.
    21. Thomas Horvath & Peter Huber & Ulrike Huemer & Helmut Mahringer & Philipp Piribauer & Mark Sommer & Stefan Weingärtner, 2022. "Mittelfristige Beschäftigungsprognose für Österreich und die Bundesländer. Berufliche und sektorale Veränderungen 2021 bis 2028," WIFO Studies, WIFO, number 70720, April.

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