[R] extracting p-values in scientific notation
rolf.turner at xtra.co.nz
Mon Oct 3 10:25:46 CEST 2011
Isn't it true that 0 < 2.2e-16?
On 03/10/11 20:53, Liviu Andronic wrote:
> Dear all
> How does print.htest display the p-value in scientific notation?
>> (x<- cor.test(iris[], iris[]))
> Pearson's product-moment correlation
> data: iris[] and iris[]
> t = 21.65, df = 148, p-value< 2.2e-16
> alternative hypothesis: true correlation is not equal to 0
> 95 percent confidence interval:
> 0.8270 0.9055
> sample estimates:
> Above the p-value comes as '< 2.2e-16', while inspecting the object I
> get a good old '0'.
>  0
> I tried to inspect print.htest but couldn't find it. I also played
> with format, round and the like to no avail. Any pointers?
More information about the R-help