Description Usage Arguments Value Functions
Calculates approximate MLE's of all involved parameters, i.e. initial distribution probabilities, transition probabilities and whichever parameters are required for the marginal distribution of the emissions.
Not expected to be called by the user directly, instead being called during the initialization of an hmm
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
obs |
The observed data |
gamma |
Initial value of transition matrix |
delta |
Initial value of initial distribution |
lls |
List of marginal densities |
param_lls |
List of parameters for marginal densities |
lls_mle |
List of functions that generate MLE's |
epsilon |
Threshold to stop algorithm when difference in log-likelihood is less than this |
max_iter |
Maximum number of iterations before stopping |
... |
Additional arguments, mainly here to avoid "unused argument"-errors. |
A list of log-likelihoods, parameter estimates and number of iterations.
em.binom
: EM-algorithm for binomial emissions
em.exponential
: EM-algorithm for exponential emissions
em.normal
: EM-algorithm for normal emissions
em.poisson
: EM-algorithm for Poisson emissions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.