
Last chance! 50% off unlimited learning
Sale ends in
Function used to generate a hidden Markov model with categorical variables and random parameters. The code for the methods with continuous values or discrete data can be viewed in "initGHMM"
and "initPHMM"
, respectively.
initHMM(n, m)
the number of hidden states to use.
the number of possible categories (labels) generated by the hidden states.
A "list"
that contains the required values to specify the model.
it specifies that the observed values are to be modeled as a multinomial distribution.
the set of hidden state names.
the set of possible observed values.
the transition probabilities matrix.
the emission probabilities matrix.
the initial probability vector.
Cited references are listed on the RcppHMM manual page.
# NOT RUN {
n <- 2
m <- 2
model <- initHMM(n,m)
print(model)
# }
Run the code above in your browser using DataLab