Description Usage Arguments Value Author(s) References Examples
This function simulates a HMM path of size 'M' given a matrix of transition probabilities 'gamma'. By default, the path always begins at the first state of the HMM.
1 | simulateHMM(gamma, M)
|
gamma |
a square matrix of transition probabiltiies such that all(rowSums(P)==1) is TRUE |
M |
length of the HMM path |
A vector of integers of length 'M' representing states of the HMM
Pedro L. Baldoni, pedrobaldoni@gmail.com
https://github.com/plbaldoni/mixNBHMM
1 | rle(simulateHMM(gamma = matrix(c(0.95,0.05,0.05,0.95),2,2),M = 1e4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.