displayState: Display the states of a Markov chain

Description Usage Arguments Value References Examples

Description

This method is used to display the states of a transition matrix of a finite-state discrete time-homogeneous Markov Chain.

Usage

1
displayState(trMatrix)

Arguments

trMatrix

Transition matrix of the Markov chain

Value

The character vector of the states of the corresponding Markov chain.

References

Chambers, J. (2008). Software for Data Analysis: Programming with R. New York: Springer Science+Business Media, LLC.

Examples

1
2
3
4
5
6
egstate <- c("a", "b", "c")
MC <- matrix(data = c(1, 0, 0, 0, 1, 0, 0, 0, 1),
         nrow = 3, byrow = TRUE,
         dimnames = list(egstate, egstate))

displayState(MC)

ZiqingHo/BasicMC documentation built on May 21, 2019, 2:29 a.m.