powered by
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)
Number of chains to simulate (integer).
Transition Matrix
Initial distribution
Number of iterations to run each chain.
Returns nchains matrices of length nrow(tmat) by n which depict the transition of the Markov Chain.
DTMC
# NOT RUN { data(gr) data(id) MultDTMC(20,gr,id,10) # 20 chains with 10 iterations using the Gambler's ruin example. # }
Run the code above in your browser using DataLab