Function to estimate the probabilities of a time series to stay or change the state.
(factor) vector of states
To estimate the transition probabilities the empirical frequencies are counted.
The transition probabilities matrix.
x[i,j] is the probability to change from state
i to state
Karsten Luebke, email@example.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.