MultDTMC {DTMCPack} | R Documentation |
Multiple Discrete time Markov Chains
Description
An extension of the DTMC package which enables multiple cocurrent Markov Chain simulations. At this time, plotting is not enabled.
Usage
MultDTMC(nchains, tmat, io, n)
Arguments
nchains |
Number of chains to simulate (integer). |
tmat |
Transition Matrix |
io |
Initial distribution |
n |
Number of iterations to run each chain. |
Value
chains |
Returns nchains matrices of length nrow(tmat) by n which depict the transition of the Markov Chain. |
Author(s)
Will Nicholson
See Also
Examples
data(gr)
data(id)
MultDTMC(20,gr,id,10) # 20 chains with 10 iterations using the Gambler's ruin example.
[Package DTMCPack version 0.1-3 Index]