Here's how to generate a million
psample <- rpois(100, lambda = 20)
so guess how you would generate one.
The main point is that if you really want to generate more than one, do
it all at once like the above, do not do it in a loop.
Bill Venables
CSIRO Laboratories
PO Box 120, Cleveland, 4
alfieim29 wrote:
> How do I generate a value in R from a poisson distribution with mean 20?
Just type ?Poisson ...
Best,
Uwe Ligges
> Thanks!
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the post
help.search('poisson')
On Nov 30, 2007 12:46 PM, alfieim29 <[EMAIL PROTECTED]> wrote:
>
> How do I generate a value in R from a poisson distribution with mean 20?
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/Generating-a-value-tf4922234.html#a14086120
> Sent from the R
3 matches
Mail list logo