is.irreducible: Function to check if a Markov chain is irreducible

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/2_probabilistic.R

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)

markovchain documentation built on July 10, 2017, 1:02 a.m.

Search within the markovchain package
Search all R packages, documentation and source code