On Fri, 2006-08-04 at 10:33 -0600, Spencer Jones wrote:
> Is there a function in R comparable to rpois that can simulate random
> variables from an overdispersed poisson distribution? If there is not a
> function any ideas/references on how to program one?

Take a look at

  ?rnbinom

or

  library(MASS)
  ?rnegbin


HTH,

Marc Schwartz

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to