| identityChain | R Documentation |
Builds the Markov chain whose transition matrix is the identity: every state is absorbing, so the chain never moves.
identityChain(n, states = NULL, name = "Identity chain")
n |
The number of states. It can be omitted when |
states |
An optional character vector of |
name |
The |
The chain is the neutral element of the product of transition matrices
(identityChain(n) * mc equals mc for a chain mc on
the same states) and the extreme case of lazyChain. Every
state is its own closed class, so every distribution is stationary.
A markovchain object with n states.
randomMarkovChain, lazyChain
identityChain(3)
identityChain(states = c("a", "b"))
absorbingStates(identityChain(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.