[R] Is this a bug in R1.21? (was: Goodness of fit ... NegBinomial)
Thomas Lumley
tlumley at u.washington.edu
Fri Feb 9 17:32:46 CET 2001
On Fri, 9 Feb 2001, Mark Myatt wrote:
> 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?
Yes. However it's been filed and fixed since yesterday.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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