| polytrendMod | R Documentation |
The function creates an n-th order polynomial exDQLM component.
polytrendMod(order, m0, C0, backend = c("auto", "R", "cpp"))
order |
Numeric order |
m0 |
Optional numeric prior mean. Defaults to |
C0 |
Optional numeric prior covariance. Defaults to matrix |
backend |
Backend selection for matrix construction:
|
An object of class "exdqlm" containing the following:
FF - n \times 1 observational vector.
GG - n \times n evolution matrix.
m0 - n \times 1 prior mean of the state vector.
C0 - n \times n prior covariance matrix of the state vector.
# create a second order polynomial component
trend.comp = polytrendMod(2, rep(0, 2), 10*diag(2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.