powered by
Calculates stationary distribution of markov transition matrix by use of eigenvectors of length 1
stationary_distribution(m)
A vector with the probabilities
Transition Matrix [matrix object]
B = t(matrix (c(0.2, 0.8, 0.4, 0.6), nrow = 2)) stationary_distribution(B)
Run the code above in your browser using DataLab