From p.dalgaard@biostat.ku.dk  Fri Oct 20 22:56:59 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 20 Oct 2000 23:56:59 +0200
Subject: [Rd] bug in pnorm (PR#699)
In-Reply-To: ratjamm@alum.mit.edu's message of "Fri, 20 Oct 2000 21:46:19 +0200 (MET DST)"
References: <200010201946.VAA13126@pubhealth.ku.dk>
Message-ID: <x2aebz5g7o.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] bug in pnorm (PR#699)
Peter Dalgaard BSA