From ripley at stats.ox.ac.uk  Tue Aug 16 21:52:21 2005
From: ripley at stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Tue, 16 Aug 2005 21:52:21 +0200 (CEST)
Subject: [Rd] quirky behavior from rbinom (PR#8071)
Message-ID: <20050816195221.85EB218B9E@slim.kubism.ku.dk>

Please supply a reproducible example as both the FAQ and the posting 
guide do ask.

On Tue, 16 Aug 2005 cpaulse at aecom.yu.edu wrote:

> 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?
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley at 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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] quirky behavior from rbinom (PR#8071)
ripley@stats.ox.ac.uk