Learn R Programming

⚠️There's a newer version (3.1.4) of this package.Take me there.

autostsm (version 1.4)

Automatic Structural Time Series Models

Description

Automatic model selection for structural time series decomposition into trend, cycle, and seasonal components using the Kalman filter. Koopman, Siem Jan and Marius Ooms (2012) "Forecasting Economic Time Series Using Unobserved Components Time Series Models" . Kim, Chang-Jin and Charles R. Nelson (1999) "State-Space Models with Regime Switching: Classical and Gibbs-Sampling Approaches with Applications" .

Copy Link

Version

Install

install.packages('autostsm')

Monthly Downloads

891

Version

1.4

License

GPL (>= 2)

Maintainer

Alex Hubbard

Last Published

June 9th, 2021

Functions in autostsm (1.4)

stsm_detect_multiplicative

Detect if log transformation is best
stsm_detect_breaks

Detect Structural Breaks
stsm_format_exo

Format exo
stsm_detect_anomalies

Detect Anomalies
stsm_forecast

Kalman Filter and Forecast
stsm_init_vals

Get initial values for the Kalman filter
stsm_detect_seasonality

Detect seasonality from the data
stsm_init_pars

Get initial parameter estimates for estimation
stsm_check_exo_fc

Data check for input exo.fc
stsm_constraints

Set the inequality constraints for estimation
stsm_ssm

State space model
stsm_check_y

Data check for input y
stsm_prior

Return a naive model prior decomposition
stsm_detect_cycle

Detect cycle from the data
stsm_detect_frequency

Detect frequency and dates from the data
stsm_estimate

Trend cycle seasonal decomposition using the Kalman filter.
stsm_detect_trend

Detect trend type
UNRATE

Unemployment Rate Seasonally Adjusted
NA000334Q

US GDP Not Seasonally Adjusted
stsm_build_dates

Build the date sequence as a Date type
stsm_bdiag

Build a block diagonal matrix from two matrices
stsm_check_exo

Data check for input exo
SP500

S&P 500
UNRATENSA

Unemployment Rate Not Seasonally Adjusted
GDP

US GDP Seasonally Adjusted
autostsm

AutoSTSM