R/statespacer-package.R

#' statespacer: A package for state space modelling in R.
#'
#' 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".
#'
#' @section 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.
#'
#' @section 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 Dylan Beijers, \email{dylanbeijers@@gmail.com}
#'
#' @references
#' \insertRef{durbin2012time}{statespacer}
#'
#' @docType package
#' @keywords internal
#' @aliases statespacer-package
#' @useDynLib statespacer, .registration = TRUE
#' @importFrom Rcpp sourceCpp
#' @importFrom Rdpack reprompt
"_PACKAGE"

Try the statespacer package in your browser

Any scripts or data that you put into this service are public.

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