stationary_distribution: Stationary distribution [Markov chains]

View source: R/RcppExports.R

stationary_distributionR Documentation

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

B = t(matrix (c(0.2, 0.8, 0.4, 0.6), nrow = 2))
stationary_distribution(B)

localScore documentation built on May 17, 2022, 5:09 p.m.