Predicts the state sequence of a hidden hybrid Markov/semi-Markov model for a new (test) data of class "hhsmmdata" with an optional prediction of the residual useful lifetime (RUL) for a left to right model
## S3 method for class 'hhsmmspec'predict(object, newdata,..., method ="viterbi", M =NA)
Arguments
object: a hidden hybrid Markov/semi-Markov model
newdata: a new (test) data of class "hhsmmdata"
...: additional parameters of the function predict.hhsmm
method: the prediction method with two options:
"viterbi" (default) uses the Viterbi algorithm for prediction
"smoothing" uses the smoothing algorithm for prediction
M: maximum duration in states
Returns
a list containing the following items:
x the observation sequence
s the predicted state sequence
N the vector of sequence lengths
p the state probabilities
RUL the point predicts of the RUL
RUL.low the lower bounds for the prediction intervals of the RUL
RUL.up the upper bounds for the prediction intervals of the RUL
Guedon, Y. (2005). Hidden hybrid Markov/semi-Markov chains. Computational statistics and Data analysis, 49(3), 663-688.
OConnell, J., & Hojsgaard, S. (2011). Hidden semi Markov models for multiple observation sequences: The mhsmm package for R. Journal of Statistical Software, 39(4), 1-22.