viterbi.msm {msm} | R Documentation |
For a fitted hidden Markov model, or a model with censored state observations, the Viterbi algorithm recursively constructs the path with the highest probability through the underlying states.
viterbi.msm(x)
x |
A fitted hidden Markov multi-state model, or a model with
censored state observations, as produced by |
A data frame with columns:
subject
= subject identification numbers
time
= times of observations
observed
= corresponding observed states
fitted
= corresponding fitted states found by Viterbi
recursion. If the model is not a hidden Markov model and there are
no censored state observations, this is just the observed states.
C. H. Jackson chris.jackson@mrc-bsu.cam.ac.uk
Durbin, R., Eddy, S., Krogh, A. and Mitchison, G. Biological sequence analysis, Cambridge University Press, 1998.