[Rd] bug in pnorm (PR#699)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
20 Oct 2000 23:56:59 +0200
ratjamm@alum.mit.edu writes:
> There is a macro in pnorm.c (in the nmath directory) which looks like:
> #define SIXTEN 1.6 /* Magic Cutoff */
> It should be something like:
> #define SIXTEN 16.0 /* Magic Cutoff */
>
> I know this appears in R version 1.1.1. I know it also appears in older
> versions.
> I do not know if it appears in newer ones.
Hmm. I tried making the appropriate change and plotting
plot(x,(pnorm(x+.00001)-pnorm(x-.00001))/dnorm(x))
for
x<-seq(0,-16,-.01)
and
x<-seq(0,16,.01)
I'll be darned if I can spot the difference. Where would you expect to
find it?
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._