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

Formulating State Space Models in R with Focus on Longitudinal Regression Models

Author

Listed:
  • Dethlefsen, Claus
  • Lundbye-Christensen, Søren

Abstract

We provide a language for formulating a range of state space models with response densities within the exponential family. The described methodology is implemented in the R-package sspir. A state space model is specified similarly to a generalized linear model in R, and then the time-varying terms are marked in the formula. Special functions for specifying polynomial time trends, harmonic seasonal patterns, unstructured seasonal patterns and time-varying covariates can be used in the formula. The model is fitted to data using iterated extended Kalman filtering, but the formulation of models does not depend on the implemented method of inference. The package is demonstrated on three datasets.

Suggested Citation

  • Dethlefsen, Claus & Lundbye-Christensen, Søren, 2006. "Formulating State Space Models in R with Focus on Longitudinal Regression Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 16(i01).
  • Handle: RePEc:jss:jstsof:v:016:i01
    DOI: http://hdl.handle.net/10.18637/jss.v016.i01
    as

    Download full text from publisher

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

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v016.i01?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
    ---><---

    Citations

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


    Cited by:

    1. Dani Gamerman & Thiago Rezende Santos & Glaura C. Franco, 2013. "A Non-Gaussian Family Of State-Space Models With Exact Marginal Likelihood," Journal of Time Series Analysis, Wiley Blackwell, vol. 34(6), pages 625-645, November.
    2. repec:jss:jstsof:41:i04 is not listed on IDEAS
    3. Cabral, Celso Rômulo Barbosa & da-Silva, Cibele Queiroz & Migon, Helio S., 2014. "A dynamic linear model with extended skew-normal for the initial distribution of the state parameter," Computational Statistics & Data Analysis, Elsevier, vol. 74(C), pages 64-80.
    4. Ruiz-Cárdenas, Ramiro & Krainski, Elias T. & Rue, Håvard, 2012. "Direct fitting of dynamic models using integrated nested Laplace approximations — INLA," Computational Statistics & Data Analysis, Elsevier, vol. 56(6), pages 1808-1828.
    5. repec:jss:jstsof:39:i02 is not listed on IDEAS

    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:016:i01. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.