[Rd] rbinom silently rounds size argument (PR#1377)

Thomas Lumley tlumley@u.washington.edu
Wed, 13 Mar 2002 09:04:29 -0800 (PST)


On Wed, 13 Mar 2002 ripley@stats.ox.ac.uk wrote:

> Fixed for 1.5.0.  Note that pbinom and qbinom did it too.
>

But isn't it right for pbinom and qbinom to do it?  P(X<=4.5) is a
perfectly reasonable quantity and is equal to P(X<=4) if X is binomial and
(with rounding the other way) the same for quantile functions.

dbinom, OTOH, is a density wrt counting measure and is not defined for
non-integers (though one could make a case for zero).

	-thomas

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