Skip to content

pnorm, relative accuracy in the tails

1 message · Jim Lindsey

#
This is not a good way to do this in R. Instead use the options log
and tail:

exp(pnorm(x,log=T,lower.tail=F)-dnorm(x,log=T))

This may eliminate your problem. (I hope I got those names right from
memory.) Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._