Skip to content
Prev 3518 / 63424 Next

d-p-q-r-tests: why is plnorm(exp(Inf)) equal pnorm(Inf)?

On Sat, 18 Mar 2000, Thomas Hoffmann wrote:

            
No, it means that exp(Inf) and exp(-Inf) are evaluated correctly (Inf and
0 respectively) and the lognormal cdf is then evaluated as 1 and 0
respectively. 

If the result were NaN then equality would not hold. Nothing is equal to
NaN, not even itself.



	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

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