Log-likelihood of a Non-Gaussian State Space Model
Computes the log-likelihood of a non-Gaussian state space model of bssm
package.
## S3 method for class 'nongaussian' logLik( object, particles, method = "psi", max_iter = 100, conv_tol = 1e-08, seed = sample(.Machine$integer.max, size = 1), ... )
object |
Model model. |
particles |
Number of samples for particle filter or importance sampling. If 0, approximate log-likelihood based on the Gaussian approximation is returned. |
method |
Sampling method, default is psi-auxiliary filter ( |
max_iter |
Maximum number of iterations for Gaussian approximation algorithm. |
conv_tol |
Tolerance parameter for the approximation algorithm. |
seed |
Seed for the random number generator. |
... |
Ignored. |
model <- ssm_ung(y = c(1,4,3), Z = 1, T = 1, R = 0.5, P1 = 2, distribution = "poisson") model2 <- bsm_ng(y = c(1,4,3), sd_level = 0.5, P1 = 2, distribution = "poisson") logLik(model, particles = 0) logLik(model2, particles = 0) logLik(model, particles = 10, seed = 1) logLik(model2, particles = 10, seed = 1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.