Skip to content
Prev 19337 / 63424 Next

pbinom with size argument 0 (PR#8560)

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