[Rd] rbinom silently rounds size argument (PR#1377)
ripley@stats.ox.ac.uk
ripley@stats.ox.ac.uk
Wed, 13 Mar 2002 11:05:14 +0100 (MET)
Fixed for 1.5.0. Note that pbinom and qbinom did it too.
On Tue, 12 Mar 2002 bolker@zoo.ufl.edu wrote:
> rbinom (in 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 sent this in to the devel list a couple of weeks ago to
> provoke discussion; no disagreement (or agreement) so I'm
> submitting it as a bug.
>
> Ben Bolker
>
> --please do not edit the information below--
>
> Version:
> platform = i686-pc-linux-gnu
> arch = i686
> os = linux-gnu
> system = i686, linux-gnu
> status =
> major = 1
> minor = 4.1
> year = 2002
> month = 01
> day = 30
> language = R
>
> Search Path:
> .GlobalEnv, package:ctest, Autoloads, package:base
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._