Description Usage Arguments Details Value
View source: R/single_HMM_DM.R
Estimation of the transition probabilites, the initial state probabilites and the hidden state parameters of a Hidden Markov Model by using the Direct Maximisation of the global log-likelihood.
1 |
x |
a sample of a Hidden Markov Model |
m |
the number of states |
L1 |
likelihood of the first hidden state |
L2 |
likelihood of the second hidden state |
L3 |
optional. likelihood of the third hidden state |
L4 |
optional. likelihood of the 4th hidden state |
L5 |
optional. likelihood of the 5th hidden state |
This function estimates the Hidden Markov states by maximising the normalized log-likelihood of the forward propabilities. Due to the fact that both the Gamma matrix as well as the Delta vector have some constraints, the function first applies some restrictions and then uses the base-R maximisation to gain the most likely variables.
The estimated parameters are rounded by 3 decimals and returned in a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.