# NOT RUN {
#Simulation using exponential shifts, random repair and random samling.
simres1 <- Markovsim(shiftfun="exp", num=500, h=1, k=1, sigma=1, s=0.2, delta=2,
RanRep=TRUE, alpha=1, beta=3, RanSam=TRUE, StateDep=TRUE,
a=0.1, b=1, V=10)
simres1
hist(simres1[[1]], 20, freq=FALSE)
#Simulation using exponential-geometric mixture shifts, random repair and random samling.
simres2 <- Markovsim(shiftfun="exp-geo", num=500, h=1, k=1, sigma=1, s=0.2, delta=2,
probmix=0.9, probnbin=0.6, RanRep=TRUE, alpha=1, beta=3, RanSam=TRUE,
StateDep=TRUE, a=0.1, b=1, V=10)
simres2
hist(simres2[[1]], 20, freq=FALSE)
# }
Run the code above in your browser using DataLab