stateProbs | R Documentation |
For a given model, computes the probability of the process being in the different states at each time point.
stateProbs(m)
m |
A |
The matrix of state probabilities, with element [i,j] the probability of being in state j in observation i.
Zucchini, W. and MacDonald, I.L. 2009. Hidden Markov Models for Time Series: An Introduction Using R. Chapman & Hall (London).
# m is a moveHMM object (as returned by fitHMM), automatically loaded with the package
m <- example$m
sp <- stateProbs(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.