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

2006-02-05 Thread uht
Hello all A pragmatic argument for allowing size=3D=3D0 is the situation where the = size is in itself a random variable (that's how I stumbled over the = inconsistency, by the way). For example, in textbooks on probability it is stated that: If X is Poisson(lambda), and the conditional=20 d

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

2006-02-03 Thread uht
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 va