[Rd] pbinom with size argument 0 (PR#8560)

uht@dfu.min.dk uht at dfu.min.dk
Fri Feb 3 12:55:36 CET 2006


Full_Name: Uffe Høgsbro Thygesen
Version: 2.2.0
OS: linux
Submission from: (NULL) (130.226.135.250)


Hello all.

  pbinom(q=0,size=0,prob=0.5)

returns the value NaN. I had expected the result 1. In fact any value for q
seems to give an NaN. Note that

  dbinom(x=0,size=0,prob=0.5)

returns the value 1.

Cheers,

Uffe



More information about the R-devel mailing list