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, firstname.lastname@example.org