statespacer-package: statespacer: A package for state space modelling in R.

statespacer-packageR Documentation

statespacer: A package for state space modelling in R.

Description

The statespacer package provides functions that make estimating models in State Space form a breeze. This package implements state-of-the-art algorithms developed by various time series practitioners such as J. Durbin and S.J. Koopman. Details about the algorithms can be found in their book, "Time Series Analysis by State Space Methods".

State Space Components

This package supports numerous state space components:

  • The Local Level

  • The Local Level + Slope

  • Smoothing Splines

  • Trigonometric Seasonality, BSM

  • (Business) Cycles

  • Explanatory Variables

  • Explanatory Variables with time-varying coefficients

  • Explanatory Variables in the Local Level

  • Explanatory Variables in the Local Level + Slope

  • ARIMA

  • SARIMA

  • Moreover, you can specify a component yourself!

These components can be used for both univariate, and multivariate models. The components can be combined in order to get more extensive models. Moreover, the user can control the format of the variance - covariance matrices of each of the components. This way, one could specify the components to be deterministic instead of stochastic. In the multivariate case, one could impose rank restrictions on the variance - covariance matrices such that commonalities in the components are estimated, like common levels, common slopes, etc.

Fitting Procedure

The package employs a univariate treatment, and an exact initialisation for diffuse elements, to estimate the state parameters and compute the loglikelihood. Collapsing large observation vectors is supported as well. Moreover, missing observations are readily dealt with by putting the models in State Space form!

Author(s)

Dylan Beijers, dylanbeijers@gmail.com

References

\insertRef

durbin2012timestatespacer

See Also

Useful links:


statespacer documentation built on Feb. 16, 2023, 9:48 p.m.