powered by
logLik.ssm computes the exact or conditional log-likelihood of a state space model.
logLik.ssm
# S3 method for ssm logLik(object, method = c("exact", "cond"), ...)
The log-likelihood value.
an object of class ssm.
ssm
character. Either "exact" or "conditional" maximum likelihood.
additional parameters.
# Local level model b <- 1 C <- as.matrix(1) ssm1 <- ssm(Nile, b, C, S = diag(c(irr = 15127.7, lvl = 1453.2))) logLik(ssm1)
Run the code above in your browser using DataLab