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

From: <uht_at_dfu.min.dk>
Date: Fri 03 Feb 2006 - 11:55:36 GMT


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 value 1.

Cheers,

Uffe



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Feb 03 23:06:45 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:40 GMT