[R] Is this a bug of pweibull()?

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Sat May 11 14:47:27 CEST 2002


On Sat, 11 May 2002, Sundar Dorai-Raj wrote:

> >
> > In rw1050, I found that
> > > pweibull(3:10, 2)
> > [1] 0.9998766 0.9999999 1.0000000 1.0000000       NaN       NaN
> > [7]       NaN       NaN
> > Warning message:
> > NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
> >
> > more surprisingly,
> > > pweibull(3:10, 2.1)
> > [1] 0.9999566 1.0000000 1.0000000      -Inf       NaN       NaN
> > [7]       NaN       NaN
> > Warning message:
> > NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
> >
> > Is this a bug of pweibull() in rw1050?
>
> Looks like a bug in the expm1() C-function.

As has already been reported hours ago, it is a bug *only* on those
systems using the substitute if the system has no expm1 function.

There is no such thing as `the expm1() C-function'!  Different ones
are used on different ports.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list