[R] Display a very low p-value

hadley wickham h.wickham at gmail.com
Wed Apr 8 21:55:07 CEST 2009


>  pnorm(37:39,lower.tail=FALSE)
> [1] 5.725571e-300  0.000000e+00  0.000000e+00
>
>  This is just a limitation of double precision floating-point arithmetic
> ...
>
>  curve(pnorm(x,lower.tail=FALSE),from=30,to=40,log="y")
> .Machine$double.xmin

But note

curve(pnorm(x,lower.tail=FALSE, log=T),from=30,to=1000)

Hadley

-- 
http://had.co.nz/




More information about the R-help mailing list