[Rd] quirky behavior from rbinom (PR#8071)
cpaulse@aecom.yu.edu
cpaulse at aecom.yu.edu
Tue Aug 16 21:11:51 CEST 2005
Full_Name: Chris Paulse
Version: 2.1.1
OS: WinXP
Submission from: (NULL) (129.98.60.134)
This seems strange. I have a small block of code that repeatedly calls rbinom.
I put a break in there in case it returns NaN, as I've been having problems with
this. Here is a transcript from the debug session:
Browse[1]> theP
[1] 1
Browse[1]> yleft[dataIndex]
[1] 3
Browse[1]> rbinom(1,3,1)
[1] 3
Browse[1]> rbinom(1,yleft[dataIndex], theP)
[1] NaN
Strange, huh?
More information about the R-devel
mailing list