Error in ppois function (PR#161)

mh.smith@auckland.ac.nz mh.smith@auckland.ac.nz
Fri, 9 Apr 1999 05:20:28 +0200


Full_Name: Murray H Smith
Version: 0.63.3
OS: Windows NT
Submission from: (NULL) (130.216.5.57)


The ppois function is displaced by -0.5.
Try:

> ppois(-0.5,1)
[1] 0.3678794
> ppois(-0.51,1)
[1] 0
> ppois(0,1)
[1] 0.3678794

and

> par(mfrow=c(2,1))
> x<-seq(-1,5,0.01)
> plot(x,ppois(x,1),type="s",ylab="F(x)",main="Poisson CDF?")
> plot(x,pbinom(x,100,0.01),type="s",ylab="F(x)",main="Binomial CDF")


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._