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

is.irreducible(object)

Arguments

object

A markovchain object

Value

A boolean values.

Details

It is based on .communicatingClasses internal function.

References

Feres, Matlab listings for Markov Chains.

See also

Author

Giorgio Spedicato

Examples

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)
#> [1] TRUE