View source: R/ss_model_utils.R
add_trend | R Documentation |
Add a trend to a state space model
add_trend(sys, type, name, const = FALSE)
sys |
list with system matrices |
type |
type of trend, see details |
name |
name ob observation equation |
const |
logical indicating if there is a constant |
type = 1
denotes a random walk, type = 2
an integrated
random walk, type = 3
and random walk with AR drift, and
type = 4
a local linear trend. type = 3
is currently not
implemented.
The input list sys
with updated matrices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.