Random generation for a mixture of two negative binomial distributions.
rmixnegbinom(n, theta, E)
rmixnegbinom
generates random deviates corresponding to the E
and theta
values provided.
number of observations.
vector of parameters for the negative binomial distribution mixture.
vector of (non-negative integer) expected counts.
Sergio Venturini sergio.venturini@unicatt.it,
Jessica A. Myers jmyers6@partners.org
Myers, J. A., Venturini, S., Dominici, F. and Morlock, L. (2011), "Random Effects Models for Identifying the Most Harmful Medication Errors in a Large, Voluntary Reporting Database". Technical Report.
dmixnegbinom
,
rnbinom
.