combineMods | R Documentation |
The function combines two models into a single state space model for an exDQLM.
combineMods(m1, m2)
m1 |
List containing the first model to be combined. |
m2 |
List containing the second model to be combined. |
List containing the new combined state space model components.
trend.comp = polytrendMod(2,rep(0,2),10*diag(2)) seas.comp = seasMod(365,c(1,2,4),C0=10*diag(6)) model = combineMods(trend.comp,seas.comp) # using dlm package library(dlm) model = combineMods(dlmModPoly(order=2,C0=10*diag(2)),dlmModTrig(365,2,C0=10*diag(4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.