[R] Is this a bug in R1.21? (was: Goodness of fit ... NegBinomial)

Mark Myatt mark at myatt.demon.co.uk
Fri Feb 9 11:20:47 CET 2001


Yudi,

Writes:

>Sorry, Mark, the program worked for Rw1011, but this is
>what happened in Rw1021:
>
>> dnbinom(0:5,.9,.4)  
>[1] 0.4383833 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000   #wrong!!
>
>while, the correct result from Rw1011 is:
>>  dnbinom(0:5,.9,.4)
>[1] 0.43838329 0.23672698 0.13493438 0.07826194 0.04578323 0.02692054
>
>I have added a corrected dnbinom() below, which makes the program
>works  for Rw1021.

[Code and text of previous messages removed]

Thanks. That works a treat. Is this a bug in v1.21?


--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list