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

2006-08-04 Thread Spencer Jones
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?

thanks,

Spencer Jones
Graduate Student, NLM Fellow
Dept. Biomedical Informatics
University of Utah

[[alternative HTML version deleted]]

__
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.


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

2006-08-04 Thread Marc Schwartz (via MN)
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.