# NOT RUN {
size <- 10
ivec <- c(5, 6, 10, 14); avec <- c(8, 11); munb <- 10; xgrid <- 0:25
tvec <- 15; pobs.a <- 0.05; pstr.i <- 0.25
dvec <- 13; pdip.mlm <- 0.03; pobs.mlm <- 0.05
(ddd <- dgaitdnbinom(xgrid, size, munb.p = munb, munb.a = munb + 5,
truncate = tvec, pobs.mix = pobs.a,
pdip.mlm = pdip.mlm, d.mlm = dvec,
pobs.mlm = pobs.a, a.mlm = avec,
pstr.mix = pstr.i, i.mix = ivec))
# }
# NOT RUN {
dgaitdplot(c(size, munb), fam = "nbinom",
ylab = "Probability", xlab = "x", xlim = c(0, 25),
truncate = tvec, pobs.mix = pobs.mix,
pobs.mlm = pobs.mlm, a.mlm = avec, all.lwd = 3,
pdip.mlm = pdip.mlm, d.mlm = dvec,
pstr.mix = pstr.i, i.mix = ivec, deflation = TRUE,
main = "GAITD Combo PMF---NB Parent")
# }
Run the code above in your browser using DataLab