simulate_markov_chain {oeli} | R Documentation |
Simulate Markov chain
Description
This function simulates a Markov chain.
Usage
simulate_markov_chain(Gamma, T, delta = oeli::stationary_distribution(Gamma))
Arguments
Gamma |
[ |
T |
[ |
delta |
[ By default, |
Value
A numeric
vector of length T
with states.
See Also
Other simulation helpers:
correlated_regressors()
,
ddirichlet_cpp()
,
dmvnorm_cpp()
,
dtnorm_cpp()
,
dwishart_cpp()
Examples
Gamma <- sample_transition_probability_matrix(dim = 3)
simulate_markov_chain(Gamma = Gamma, T = 10)
[Package oeli version 0.7.0 Index]