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

KFAS: Exponential Family State Space Models in R

Author

Listed:
  • Helske, Jouni

Abstract

State space modeling is an efficient and flexible method for statistical inference of a broad class of time series and other data. This paper describes the R package KFAS for state space modeling with the observations from an exponential family, namely Gaussian, Poisson, binomial, negative binomial and gamma distributions. After introducing the basic theory behind Gaussian and non-Gaussian state space models, an illustrative example of Poisson time series forecasting is provided. Finally, a comparison to alternative R packages suitable for non-Gaussian time series modeling is presented.

Suggested Citation

  • Helske, Jouni, 2017. "KFAS: Exponential Family State Space Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 78(i10).
  • Handle: RePEc:jss:jstsof:v:078:i10
    DOI: http://hdl.handle.net/10.18637/jss.v078.i10
    as

    Download full text from publisher

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

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v078i10/KFAS_1.2.8.tar.gz
    Download Restriction: no

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

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v078.i10?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. Siem Jan Koopman & André Lucas & Marcel Scharth, 2016. "Predicting Time-Varying Parameters with Parameter-Driven and Observation-Driven Models," The Review of Economics and Statistics, MIT Press, vol. 98(1), pages 97-110, March.
    2. Bates, Douglas & Mächler, Martin & Bolker, Ben & Walker, Steve, 2015. "Fitting Linear Mixed-Effects Models Using lme4," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 67(i01).
    3. Marc K. Francke & Siem Jan Koopman & Aart F. De Vos, 2010. "Likelihood functions for state space models with diffuse initial conditions," Journal of Time Series Analysis, Wiley Blackwell, vol. 31(6), pages 407-414, November.
    4. Durbin, James & Koopman, Siem Jan, 2012. "Time Series Analysis by State Space Methods," OUP Catalogue, Oxford University Press, edition 2, number 9780199641178, Decembrie.
    5. S. J. Koopman & J. Durbin, 2003. "Filtering and smoothing of state vector for diffuse state‐space models," Journal of Time Series Analysis, Wiley Blackwell, vol. 24(1), pages 85-98, January.
    6. S. J. Koopman & J. Durbin, 2000. "Fast Filtering and Smoothing for Multivariate State Space Models," Journal of Time Series Analysis, Wiley Blackwell, vol. 21(3), pages 281-296, May.
    7. J. Durbin, 2002. "A simple and efficient simulation smoother for state space time series analysis," Biometrika, Biometrika Trust, vol. 89(3), pages 603-616, August.
    8. Petris, Giovanni & Petrone, Sonia, 2011. "State Space Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 41(i04).
    9. Stasinopoulos, D. Mikis & Rigby, Robert A., 2007. "Generalized Additive Models for Location Scale and Shape (GAMLSS) in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 23(i07).
    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. Paul Labonne & Martin Weale, 2020. "Temporal disaggregation of overlapping noisy quarterly data: estimation of monthly output from UK value‐added tax data," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 183(3), pages 1211-1230, June.
    2. Lisi, Francesco & Pelagatti, Matteo M., 2018. "Component estimation for electricity market data: Deterministic or stochastic?," Energy Economics, Elsevier, vol. 74(C), pages 13-37.
    3. Paolo Maranzano & Alessandro Fassò & Matteo Pelagatti & Manfred Mudelsee, 2020. "Statistical Modeling of the Early-Stage Impact of a New Traffic Policy in Milan, Italy," IJERPH, MDPI, vol. 17(3), pages 1-22, February.
    4. Michael D. Hunter & Haya Fatimah & Marina A. Bornovalova, 2022. "Two Filtering Methods of Forecasting Linear and Nonlinear Dynamics of Intensive Longitudinal Data," Psychometrika, Springer;The Psychometric Society, vol. 87(2), pages 477-505, June.
    5. Komi Nagbe & Jairo Cugliari & Julien Jacques, 2018. "Short-Term Electricity Demand Forecasting Using a Functional State Space Model," Energies, MDPI, vol. 11(5), pages 1-24, May.
    6. Paul Labonne & Martin Weale, 2018. "Temporal disaggregation of overlapping noisy quarterly data using state space models: Estimation of monthly business sector output from Value Added Tax data in the UK," Economic Statistics Centre of Excellence (ESCoE) Discussion Papers ESCoE DP-2018-18, Economic Statistics Centre of Excellence (ESCoE).
    7. González-Rivera, Gloria & Rodríguez Caballero, Carlos Vladimir & Ruiz Ortega, Esther, 2023. "Modelling intervals of minimum/maximum temperatures in the Iberian Peninsula," DES - Working Papers. Statistics and Econometrics. WS 37968, Universidad Carlos III de Madrid. Departamento de Estadística.
    8. Shafiqah Azman & Dharini Pathmanathan & Aerambamoorthy Thavaneswaran, 2022. "Forecasting the Volatility of Cryptocurrencies in the Presence of COVID-19 with the State Space Model and Kalman Filter," Mathematics, MDPI, vol. 10(17), pages 1-15, September.
    9. Yanling Li & Zita Oravecz & Shuai Zhou & Yosef Bodovski & Ian J. Barnett & Guangqing Chi & Yuan Zhou & Naomi P. Friedman & Scott I. Vrieze & Sy-Miin Chow, 2022. "Bayesian Forecasting with a Regime-Switching Zero-Inflated Multilevel Poisson Regression Model: An Application to Adolescent Alcohol Use with Spatial Covariates," Psychometrika, Springer;The Psychometric Society, vol. 87(2), pages 376-402, June.
    10. Peter Dreuw, 2023. "Structural time series models and synthetic controls—assessing the impact of the euro adoption," Empirical Economics, Springer, vol. 64(2), pages 681-725, February.
    11. Matthew F Dixon, 2017. "Sequence Classification of the Limit Order Book using Recurrent Neural Networks," Papers 1707.05642, arXiv.org.

    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. Tommaso Proietti & Alessandra Luati, 2013. "Maximum likelihood estimation of time series models: the Kalman filter and beyond," Chapters, in: Nigar Hashimzade & Michael A. Thornton (ed.), Handbook of Research Methods and Applications in Empirical Macroeconomics, chapter 15, pages 334-362, Edward Elgar Publishing.
    2. M. Dossche & G. Everaert, 2005. "Measuring inflation persistence: a structural time series approach," Working Papers of Faculty of Economics and Business Administration, Ghent University, Belgium 05/340, Ghent University, Faculty of Economics and Business Administration.
    3. Mesters, G. & Koopman, S.J., 2014. "Generalized dynamic panel data models with random effects for cross-section and time," Journal of Econometrics, Elsevier, vol. 180(2), pages 127-140.
    4. Thomas Hasenzagl & Filippo Pellegrino & Lucrezia Reichlin & Giovanni Ricco, 2022. "A Model of the Fed's View on Inflation," The Review of Economics and Statistics, MIT Press, vol. 104(4), pages 686-704, October.
    5. Fondeur, Y. & Karamé, F., 2013. "Can Google data help predict French youth unemployment?," Economic Modelling, Elsevier, vol. 30(C), pages 117-125.
    6. Alexander Kreuzer & Luciana Dalla Valle & Claudia Czado, 2022. "A Bayesian non‐linear state space copula model for air pollution in Beijing," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 71(3), pages 613-638, June.
    7. Borus Jungbacker & Siem Jan Koopman, 2008. "Likelihood-based Analysis for Dynamic Factor Models," Tinbergen Institute Discussion Papers 08-007/4, Tinbergen Institute, revised 20 Mar 2014.
    8. Adjemian, Stéphane & Bastani, Houtan & Juillard, Michel & Karamé, Fréderic & Mihoubi, Ferhat & Mutschler, Willi & Pfeifer, Johannes & Ratto, Marco & Rion, Normann & Villemot, Sébastien, 2022. "Dynare: Reference Manual Version 5," Dynare Working Papers 72, CEPREMAP, revised Mar 2023.
      • Stéphane Adjemian & Houtan Bastani & Michel Juillard & Frédéric Karamé & Ferhat Mihoubi & Willi Mutschler & Johannes Pfeifer & Marco Ratto & Sébastien Villemot & Normann Rion, 2023. "Dynare: Reference Manual Version 5," PSE Working Papers hal-04219920, HAL.
      • Stéphane Adjemian & Houtan Bastani & Michel Juillard & Frédéric Karamé & Ferhat Mihoubi & Willi Mutschler & Johannes Pfeifer & Marco Ratto & Sébastien Villemot & Normann Rion, 2023. "Dynare: Reference Manual Version 5," Working Papers hal-04219920, HAL.
    9. Ledenyov, Dimitri O. & Ledenyov, Viktor O., 2013. "On the Stratonovich – Kalman - Bucy filtering algorithm application for accurate characterization of financial time series with use of state-space model by central banks," MPRA Paper 50235, University Library of Munich, Germany.
    10. Catherine Doz & Laurent Ferrara & Pierre-Alain Pionnier, 2020. "Business cycle dynamics after the Great Recession: An Extended Markov-Switching Dynamic Factor Model," Working Papers halshs-02443364, HAL.
    11. Algaba, Andres & Borms, Samuel & Boudt, Kris & Verbeken, Brecht, 2023. "Daily news sentiment and monthly surveys: A mixed-frequency dynamic factor model for nowcasting consumer confidence," International Journal of Forecasting, Elsevier, vol. 39(1), pages 266-278.
    12. Ledenyov, Dimitri O. & Ledenyov, Viktor O., 2015. "Wave function method to forecast foreign currencies exchange rates at ultra high frequency electronic trading in foreign currencies exchange markets," MPRA Paper 67470, University Library of Munich, Germany.
    13. repec:jss:jstsof:39:i02 is not listed on IDEAS
    14. repec:hal:spmain:info:hdl:2441/784ilbkihi9tkblnh7q2514823 is not listed on IDEAS
    15. Prashant Srivastava & Dawei Han & Miguel Rico-Ramirez & Deleen Al-Shrafany & Tanvir Islam, 2013. "Data Fusion Techniques for Improving Soil Moisture Deficit Using SMOS Satellite and WRF-NOAH Land Surface Model," Water Resources Management: An International Journal, Published for the European Water Resources Association (EWRA), Springer;European Water Resources Association (EWRA), vol. 27(15), pages 5069-5087, December.
    16. T. Berger & G. Everaert, 2006. "Re-examining the Structural and the Persistence Approach to Unemployment," Working Papers of Faculty of Economics and Business Administration, Ghent University, Belgium 06/383, Ghent University, Faculty of Economics and Business Administration.
    17. Borus Jungbacker & Siem Jan Koopman, 2015. "Likelihood‐based dynamic factor analysis for measurement and forecasting," Econometrics Journal, Royal Economic Society, vol. 18(2), pages 1-21, June.
    18. Victor Bystrov, 2018. "Measuring the Natural Rates of Interest in Germany and Italy," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 10(4), pages 333-353, December.
    19. Drew Creal & Siem Jan Koopman & Eric Zivot, 2008. "The Effect of the Great Moderation on the U.S. Business Cycle in a Time-varying Multivariate Trend-cycle Model," Tinbergen Institute Discussion Papers 08-069/4, Tinbergen Institute.
    20. Yue Zhao & Difang Wan, 2018. "Institutional high frequency trading and price discovery: Evidence from an emerging commodity futures market," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(2), pages 243-270, February.
    21. Koopman, Siem Jan & Lucas, André, 2008. "A Non-Gaussian Panel Time Series Model for Estimating and Decomposing Default Risk," Journal of Business & Economic Statistics, American Statistical Association, vol. 26, pages 510-525.
    22. McCausland, William J. & Miller, Shirley & Pelletier, Denis, 2011. "Simulation smoothing for state-space models: A computational efficiency analysis," Computational Statistics & Data Analysis, Elsevier, vol. 55(1), pages 199-212, January.

    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:078:i10. 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.