Learn R Programming

markovchain (version 0.8.5)

steadyStates: Stationary states of a markovchain object

Description

This method returns the stationary vector in matricial form of a markovchain object.

Usage

steadyStates(object)

Arguments

object

A discrete markovchain object

Value

A matrix corresponding to the stationary states

References

A First Course in Probability (8th Edition), Sheldon Ross, Prentice Hall 2010

See Also

'>markovchain

Examples

Run this code
# NOT RUN {
statesNames <- c("a", "b", "c")
markovB <- new("markovchain", states = statesNames, transitionMatrix =
                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)),
               name = "A markovchain Object" 
)       
steadyStates(markovB)

# }

Run the code above in your browser using DataLab