| logLik.ssm | R Documentation |
logLik.ssm computes the exact or conditional log-likelihood of a state
space model.
## S3 method for class 'ssm'
logLik(object, method = c("exact", "cond"), ...)
object |
an object of class |
method |
character. Either "exact" or "conditional" maximum likelihood. |
... |
additional parameters. |
The log-likelihood value.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.