rnb: Simulate from a negative binomial distribution
Description
Parametrized by mean (rate) and variance. Both parameters can be
vector arguments. For this case with mean = variance = c(r1, r2) and n = 5,
the returned vector contains 5 Poisson samples. Three samples are drawn from
a Poisson distribution with rate r1 (index 1, 3 and 5 in output vector) and
two from a Poisson with rate r2 (index 2 and 4).