Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dlmLL

Log likelihood evaluation for a state space model


Description

Function that computes the log likelihood of a state space model.

Usage

dlmLL(y, mod, debug=FALSE)

Arguments

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 debug=TRUE, the function uses R code, otherwise it uses faster C code.

Details

The calculations are based on singular value decomposition. Missing values are allowed in y.

Value

The function returns the negative of the loglikelihood.

Warning

The observation variance V in mod must be nonsingular.

Author(s)

Giovanni Petris GPetris@uark.edu

References

Durbin and Koopman, Time series analysis by state space methods, Oxford University Press, 2001.

See Also

dlmMLE, dlmFilter for the definition of the equations of the model.

Examples

##---- See the examples for dlmMLE ----

dlm

Bayesian and Likelihood Analysis of Dynamic Linear Models

v1.1-5
GPL (>= 2)
Authors
Giovanni Petris [aut, cre], Wally Gilks [ctb] (Author of original C code for ARMS)
Initial release
2018-05-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.