[R] Simulate an Overdispersed(extra-variance poisson process)?

Marc Schwartz (via MN) mschwartz at mn.rr.com
Fri Aug 4 18:49:52 CEST 2006


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



More information about the R-help mailing list