MultDTMC | R Documentation |
An extension of the DTMC package which enables multiple cocurrent Markov Chain simulations. At this time, plotting is not enabled.
MultDTMC(nchains, tmat, io, n)
nchains |
Number of chains to simulate (integer). |
tmat |
Transition Matrix |
io |
Initial distribution |
n |
Number of iterations to run each chain. |
chains |
Returns nchains matrices of length nrow(tmat) by n which depict the transition of the Markov Chain. |
Will Nicholson
DTMC
data(gr) data(id) MultDTMC(20,gr,id,10) # 20 chains with 10 iterations using the Gambler's ruin example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.