[Rd] rbinom rounds size argument

Ben Bolker bolker@zoo.ufl.edu
Wed, 27 Feb 2002 13:54:25 -0500 (EST)

  rbinom (R-1.4.1) silently rounds its "size" argument.
  The C code contains

    n = floor(nin + 0.5);

  I would argue that this should this either be documented or changed (to
return NA).  (The behavior is inconsistent with dbinom).

  I can submit a bug report if people agree it's a bug.

318 Carr Hall                                bolker@zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

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