f_ll_hmm | R Documentation |
Log-likelihood function of a Gaussian-hidden Markov model
f_ll_hmm(theta, data, N, neg = FALSE)
theta |
A
|
data |
A |
N |
An |
neg |
Set to |
A numeric
, the log-likelihood value at theta
given data
.
https://en.wikipedia.org/wiki/Hidden_Markov_model
theta <- c(-1, -1, -2, 2, 0.5, 0.5)
data <- sim_hmm(Tp = 1000, N = 2, theta = theta)
f_ll_hmm(theta = theta, data = data, N = 2)
nlm(f_ll_hmm, p = theta, data = data, N = 2, neg = TRUE)$estimate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.