Description Usage Arguments Value Author(s) See Also
Computes the Viterbi path associated to an homogenenous HMM or MSAR model.
1 | viterbi_path(prior, transmat, obsmat)
|
prior |
prior probabilities PRIOR(I) = Pr(X(1) = I) |
transmat |
transition matrice TRANSMAT(I,J) = Pr(X(T+1)=J | X(T)=I) |
obsmat |
emission probabilities OBSMAT(I,t) = Pr(Y(t) | X(t)=I) |
List including
..$gamma |
smoothing probabilities P(X(t)|Y(0),...,Y(T)) |
..$xi |
two steps smoothing probabilities P(X(t),X(t+1)|Y(0),...,Y(T)) |
..$loglik |
log likelihood |
..$M |
Number of regimes |
..$alpha |
intermediate component in the FB algorithm (forward) |
..$beta |
intermediate component in the FB algorithm (backward) |
Valerie Monbet, valerie.monbet@univ-rennes1.fr
forwards_backwards.R, fit.MSAR, Estep.MSAR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.