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]]
?options look at scipen On Wed, Apr 8, 2009 at 2:38 PM, Bhoom Suktitipat <suktitipat at gmail.com> 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. >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
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