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

kjetil halvorsen kjetilh at umsanet.edu.bo
Tue May 14 15:56:01 CEST 2002


I checked this on win98 (R1.4.1, still):

> pweibull(3:10, 2)
[1] 0.9998766 0.9999999 1.0000000 1.0000000 1.0000000 1.0000000
1.0000000
[8] 1.0000000
> pweibull(3:10, 2.1)
[1] 0.9999566 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000
1.0000000
[8] 1.0000000
> 


Kjetil Halvorsen

Martin Maechler wrote:
> 
> >>>>> "Lu" == Lu Chi-Hsien Joseph <cjlu at ibm.stat.ncku.edu.tw> writes:
> 
>     Lu> In rw1050, I found that
>     >> pweibull(3:10, 2)
>     Lu> [1] 0.9998766 0.9999999 1.0000000 1.0000000       NaN       NaN
>     Lu> [7]       NaN       NaN
>     Lu> Warning message:
>     Lu> NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
> 
>     Lu> more surprisingly,
>     >> pweibull(3:10, 2.1)
>     Lu> [1] 0.9999566 1.0000000 1.0000000      -Inf       NaN       NaN
>     Lu> [7]       NaN       NaN
>     Lu> Warning message:
>     Lu> NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
> 
>     Lu> Is this a bug of pweibull() in rw1050?
> 
> Probably a problem with Windows / Math library behavior.
> The above example works fine in three different Unix versions I
> have access to (on Saturday morning).
> 
> Can others, particularly Windows users, check this?
> 
> Thanks,
> Martin Maechler
> 
>     >> version
>     Lu> _
>     Lu> platform i386-pc-mingw32
>     Lu> arch     i386
>     Lu> os       mingw32
>     Lu> system   i386, mingw32
>     Lu> status
>     Lu> major    1
>     Lu> minor    5.0
>     Lu> year     2002
>     Lu> month    04
>     Lu> day      29
>     Lu> language R
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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