dlmLL {dlm} | R Documentation |
Function that computes the log likelihood of a state space model.
dlmLL(y, mod, debug=FALSE)
y |
A vector, matrix, or time series of data. |
mod |
An object of class "dlm" , or a list with components
m0 , C0 ,
FF , V , GG , W defining the model
and the parameters of the prior distribution. |
debug |
If TRUE, the function uses R code, otherwise it uses faster C code. |
The calculations are based on singular value decomposition.
The function returns the negative of the loglikelihood.
Giovanni Petris <GPetris@uark.edu>
Durbin and Koopman, Time series analysis by state space methods, Oxford University Press, 2001.
dlmMLE
, dlmFilter
for the definition of
the equations of the model.
##---- See the examples for dlmMLE ----