View source: R/SimMarkovChain.R
SimMarkovChain | R Documentation |
This function generates a Markov chain X(1), ..., X(n) with transition matrix Q, starting from a state eta0 or the uniform distribution on 1,..., r.
SimMarkovChain(Q, n, eta0)
Q |
transition probability matrix |
n |
number of simulated vectors |
eta0 |
initial value in 1,...,r. |
x |
Generated Markov chain |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.