MarkovChain: Markov Chain

Description Usage Arguments Value Author(s) Examples

Description

This function simulates the stationary probabilities from a transition probability matrix.

Usage

1
MarkovChain(p,k,n)

Arguments

p

transition probability matrix

k

integer indicating the initial state of the chain

n

number of simulated steps

Value

Stationary probabilities for each state

Author(s)

Nina Louise Pedersen
Institute of Mathematics and Computer Science (IMADA)
University of Sourthern Denmark, (SDU)
npede14@student.sdu.dk

Examples

1
MarkovChain(matrix(c(.5,.5,.5,.5),ncol=2,byrow=TRUE),1,1000)

ninalpedersen/Temp2 documentation built on May 23, 2019, 7:05 p.m.