From bolker@zoo.ufl.edu  Wed Feb 27 18:54:25 2002
From: bolker@zoo.ufl.edu (Ben Bolker)
Date: Wed, 27 Feb 2002 13:54:25 -0500 (EST)
Subject: [Rd] rbinom rounds size argument
Message-ID: <Pine.LNX.4.30.0202271352210.25741-100000@bolker.zoo.ufl.edu>


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


[Rd] rbinom rounds size argument
Ben Bolker