statespacer-package | R Documentation |
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".
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.
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!
Dylan Beijers, dylanbeijers@gmail.com
durbin2012timestatespacer
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.