Skip to content

Error in ppois function (PR#161)

2 messages · Brian Ripley, Kurt Hornik

#
On Fri, 9 Apr 1999 ihaka@stat.auckland.ac.nz wrote:

            
Try reading on:
had
(q in R is x in C.)
and R-0.64.1 does
[1] 0.4060058
[1] 0.4060058
Warning: non-integer x = 1.100000
[1] 0

Happy?

Brian
#
No!  Why the warning?  dpois(non-integer, something) makes perfect
sense, and simply gives 0.

(Yes, dwilcox() and dsignrank() will need fixing, too ...)

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._