Description Usage Arguments Value Author(s) Examples
View source: R/package_functions.R
State space model Creates a state space model in list form yt = Ht * Bt + e_t Bt = Ft * B_t-1 + u_t
1 2 3 4 5 6 7 8 9 |
par |
Vector of named parameter values, includes the harmonics |
yt |
Univariate time series of data values |
freq |
Frequency of the data (1 (yearly), 4 (quarterly), 12 (montly), 52 (weekly), 365 (daily)) |
decomp |
Decomposition model ("tend-cycle-seasonal", "trend-seasonal", "trend-cycle", "trend-noise") |
trend_spec |
Trend specification (NULL, "rw", "rwd", "2rw"). The default is NULL which will choose the best of all specifications based on the maximum likielhood. "rw" is the random walk trend. "rwd" is the random walk with random walk drift trend. "2rw" is a 2nd order random walk trend. |
init |
Initial state values for the Kalman filter |
model |
a tcs_decomp_estim model object |
List of space space matrices
Alex Hubbard (hubbard.alex@gmail.com)
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.