initHMM2 | R Documentation |
Initial parameter estimates for two state HMM model with variable transition probabilities
initHMM2(y, cl, formula1, formula2, data)
y |
the sequence of observations |
cl |
an integer vector allocating observations to classes |
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 |
Given a sequence of observations and a vector of initial class allocations, estimate the parameters for a two state hidden Markov model where the transition probabilities are governed by logistic regression.
estimated model parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.