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

From: Marc Schwartz (via MN) <mschwartz_at_mn.rr.com>
Date: Sat 05 Aug 2006 - 02:49:52 EST

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. Received on Sat Aug 05 02:54:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 05 Aug 2006 - 04:17:42 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.