simulate_markov_chain | R Documentation |
This function simulates a Markov chain.
simulate_markov_chain(
Gamma,
T,
delta = Gamma2delta(Gamma),
seed = NULL,
total_length = T
)
Gamma |
A transition probability |
T |
AN |
delta |
A |
seed |
Set a seed. |
total_length |
An |
A numeric
vector of length T
with states.
## Not run:
Gamma <- matrix(c(0.5, 0.3, 0.5, 0.7), 2, 2)
T <- 10
simulate_markov_chain(Gamma = Gamma, T = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.