Learn R Programming

DTMCPack (version 0.1-3)

MultDTMC: 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.

See Also

DTMC

Examples

Run this code
# 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