View source: R/simulate_markov_chain.R
simulate_markov_chain | R Documentation |
This function simulates a Markov chain.
simulate_markov_chain(Gamma, T, delta = oeli::stationary_distribution(Gamma))
Gamma |
[ |
T |
[ |
delta |
[ By default, |
A numeric
vector of length T
with states.
Other simulation helpers:
correlated_regressors()
,
ddirichlet_cpp()
,
dmvnorm_cpp()
,
dtnorm_cpp()
,
dwishart_cpp()
Gamma <- sample_transition_probability_matrix(dim = 3)
simulate_markov_chain(Gamma = Gamma, T = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.