localScore (version 1.0.6)

stationary_distribution: Stationary distribution [Markov chains]

Description

Calculates stationary distribution of markov transitition matrix by use of eigenvectors of length 1

Usage

stationary_distribution(m)

Arguments

m

Transition Matrix [matrix object]

Value

A vector with the probabilities

Examples

Run this code
# NOT RUN {
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