initHMM: Random Initialization for a Hidden Markov Model with emissions modeled as categorical variables
Description
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.
Usage
initHMM(n, m)
Value
A "list" that contains the required values to specify the model.
Model
it specifies that the observed values are to be modeled as a multinomial distribution.
StateNames
the set of hidden state names.
ObservationNames
the set of possible observed values.
A
the transition probabilities matrix.
B
the emission probabilities matrix.
Pi
the initial probability vector.
Arguments
n
the number of hidden states to use.
m
the number of possible categories (labels) generated by the hidden states.
References
Cited references are listed on the RcppHMM manual page.