powered by
The function creates an n-th order polynomial exDQLM component.
polytrendMod(order, m0, C0, backend = c("auto", "R", "cpp"))
An object of class "exdqlm" containing the following:
exdqlm
FF - \(n \times 1\) observational vector.
FF
GG - \(n \times n\) evolution matrix.
GG
m0 - \(n \times 1\) prior mean of the state vector.
m0
C0 - \(n \times n\) prior covariance matrix of the state vector.
C0
Numeric order \(n\) of the polynomial model.
Optional numeric prior mean. Defaults to \(n \times 1\) vector of zeros.
Optional numeric prior covariance. Defaults to matrix \(10^3 I_n\).
Backend selection for matrix construction: "auto" (default), "R", or "cpp".
"auto"
"R"
"cpp"
# create a second order polynomial component trend.comp = polytrendMod(2, rep(0, 2), 10*diag(2))
Run the code above in your browser using DataLab