Description Usage Arguments Details Value References
This is simply a wrapper for trendModelArb
which produces
specific trend models discussed in Chapter 3 of Durbin and Koopman.
1 | namedTrends(trendType, parmlist)
|
trendType |
The name of a specific trend type. Options are
|
parmlist |
A list of parameters as generated by |
The named trend models have the following forms:
1. LocalLevel:
y_t = mu_t + more
mu_t+1 = mu_t + xi_t
2. LocalLinTrend:
y_t = mu_t + more
mu_t+1 = mu_t + nu_t + xi_t
nu_t+1 = nu_t + eta_t
3. SmoothSlope:
y_t = mu_t + more
mu_t+1 = mu_t + nu_t
nu_t+1 = nu_t + eta_t
4. ConstantSlope has trend = constSlope, gives linear trend
y_t = mu_t + more
mu_t+1 = constSlope + mu_t
5. IRW(r), r > 1,default is r=2
y_t = mu_t + more
mu_t+1 = 2mu_t - mu_t-1 + xi_t
A list of matrices with components Z
, Tt
, Q
, and
R
.
Durbin, James, and Koopman, Siem Jan. Time Series Analysis by State Space Methods (2nd Edition). Cambridge, GBR: OUP Oxford, 2012.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.