[R] Display a very low p-value
Dimitris Rizopoulos
d.rizopoulos at erasmusmc.nl
Wed Apr 8 20:44:20 CEST 2009
in this case you need to use the 'lower.tail' argument, e.g.,
pnorm(8:15, lower.tail = FALSE)
I hope it helps.
Best,
Dimitris
Bhoom Suktitipat wrote:
> Hello R-Help,
>
> I ran some analysis and were hit with some low Z-score. I tried to convert
> it to a p-value, however, it seems like the ceiling is around 1e-16.
>
>> 1-pnorm(8)
> [1] 6.661338e-16
>> 1-pnorm(9)
> [1] 0
>
> Do you have any suggestion how I can display a very low p-value in the form
> of scientific number format?
>
> Thank you very much.
>
> Regards,
> Bhoom
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center
Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043478
Fax: +31/(0)10/7043014
More information about the R-help
mailing list