getAbsorbingStates: Get Absorbing States of Markov chain

Description Usage Arguments Value References Examples

View source: R/rewriteFunc.R

Description

The function return absorbing states of the markovchain object.

Usage

1

Arguments

mc

mc class object

Value

vector of characters for state names

References

markovchain CRAN package

Examples

1
2
3
4
5
## The function is currently defined as
statesNames=c("a","b","c")
markovB<-mc.create(matrix(c(0.2,0.5,0.3, 0,1,0,0.1,0.8,0.1),nrow=3, byrow=TRUE, 
	dimnames=list(statesNames,statesNames)), discrete=TRUE, infinite=FALSE)
getAbsorbingStates(markovB)

qiwei-li/infiniteMC documentation built on May 26, 2019, 11:36 a.m.