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) <[EMAIL PROTECTED]>
Fax-to-email: +44 (0)870 094 0861
Date: 07-Feb-07                                       Time: 19:10:18
------------------------------ XFMail ------------------------------

______________________________________________
[email protected] 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.

Reply via email to