parm: vector of initial values - for the optimization routine - of the unknown parameters.
build: a function that takes a vector of the same length as parm and returns an object of class dlm, or a list that may be interpreted as such.
method: passed to optim.
...: additional arguments passed to optim and build.
debug: if debug=TRUE, the likelihood calculations are done entirely in R, otherwise C functions are used.
Details
The evaluation of the loglikelihood is done by dlmLL. For the optimization, optim is called. It is possible for the model to depend on additional parameters, other than those in parm, passed to build via the ... argument.
Returns
The function dlmMLE returns the value returned by optim.
References
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).
Warning
The build argument must return a dlm with nonsingular observation variance V.