[R] Sample Poisson Distribution
(Ted Harding)
ted.harding at nessie.mcc.ac.uk
Wed Feb 7 20:10:21 CET 2007
On 07-Feb-07 Ted Harding wrote:
> On 07-Feb-07 Thor wrote:
>> [...]
>> So far I have figured out:
>>
>>> N <- 1000
>>> x <- rpois(N, 3.1) ,
>
> Comment: The Poisson distribution has only one parameter, lambda,
> so it should be rpois(N, lambda), e.g. rpois(N, 3). You will get
> an error with your second parameter "1".
OOOPS!! My eyesight let me down here, or else it was a speck on my
computer screen! Of course I now see it is "3.1" and not "3,1", so
wherever I wrote "3" before it should be "3.1"!
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 07-Feb-07 Time: 19:10:18
------------------------------ XFMail ------------------------------
More information about the R-help
mailing list