hmm2EMStep | R Documentation |
The HMM update step of the EM algorithm
hmm2EMStep(K, y, pars, formula1, formula2, data)
K |
the number of classes |
y |
the sequence of observations |
pars |
current sequence parameters |
formula1 |
formula for the logistic model relating the transition from state 1 to state 2 to the covariates |
formula2 |
formula for the logistic model relating the transition from state 2 to state 1 to the covariates |
data |
a dataframe of covariates |
Perform a single step of the EM algorithm to fit the HMM component of a two state multivariate Normal HMM model where the transistion probabilities are governed by logistic regression models.
the updated set of parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.