viterbi.msm: Calculate the most likely path through underlying stages
Description
For a fitted multi state model with misclassification, the Viterbi
algorithm recursively constructs the path with the
highest probability through the underlying stages .
Usage
viterbi.msm(x)
Arguments
x
A fitted multi-state model with misclassification, as
produced by msm
Value
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.
References
Durbin, R., Eddy, S., Krogh, A. and Mitchison, G. Biological
sequence analysis, Cambridge University Press, 1998.