Function to check if a Markov chain is irreducible

Share:

Description

This function verifies whether a markovchain object transition matrix is composed by only one communicating class.

Usage

1

Arguments

object

A markovchain object

Details

It is based on .communicatingClasses internal function.

Value

A boolean values.

Author(s)

Giorgio Spedicato

References

Feres, Matlab listings for Markov Chains.

See Also

summary

Examples

1
2
3
4
5
6
statesNames <- c("a", "b")
mcA <- new("markovchain", transitionMatrix = matrix(c(0.7,0.3,0.1,0.9),
                                             byrow = TRUE, nrow = 2, 
                                             dimnames = list(statesNames, statesNames)
           ))
is.irreducible(mcA)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.