Description Usage Arguments Value References Examples
Construction of the transition probability matrix corresponding to the HMM which exactly represents the HSMM. Not intended to be run by the user (internal function, called by the functions w2nHSMM
and pmleHSMM
).
1 | tpmHMM(N, omega, d_r, R_vec, eps=1e-10)
|
N |
number of states of the HSMM, integer greater than 1. |
omega |
conditional transition probability matrix of the HSMM with N rows and N columns. The diagonal elements must be zero and the rows must sum to one. |
d_r |
list of vectors containing the dwell-time probabilities of the unstructured starts. |
R_vec |
vector of length N containing the lengths of the unstructured starts of the state dwell-time distributions. |
eps |
to avoid negative probabilities due to numerical underflow. Default is |
Returns the transition probability matrix of the HMM which exactly represents the HSMM.
For details on the code and construction of the matrix, see:
Langrock, R. and Zucchini W. (2011): Hidden Markov models with arbitrary state dwell-time distributions. Computational Statistics and Data Analysis, 55, p. 715–724.
Zucchini, W., MacDonald, I.L. and Langrock, R. (2016): Hidden Markov models for time series: An introduction using R. 2nd edition. Chapman & Hall/CRC, Boca Raton.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.