powered by
dlmSum creates a unique DLM out of two or more independent DLMs. %+% is an alias for dlmSum.
dlmSum
%+%
dlmSum(...) x %+% y
An object of class dlm, representing the outer sum of the arguments.
dlm
any number of objects of class dlm, or a list of such objects.
objects of class dlm.
Giovanni Petris GPetris@uark.edu
Giovanni Petris (2010), An R Package for Dynamic Linear Models. Journal of Statistical Software, 36(12), 1-16. https://www.jstatsoft.org/v36/i12/. Petris, Petrone, and Campagnoli, Dynamic Linear Models with R, Springer (2009).
m1 <- dlmModPoly(2) m2 <- dlmModPoly(1) dlmSum(m1, m2) m1 %+% m2 # same thing
Run the code above in your browser using DataLab