Re: [R] p-values 2.2e-16 not reported

2010-05-20 Thread Shi, Tao
Sent: Wed, May 19, 2010 3:31:26 PM Subject: Re: [R] p-values 2.2e-16 not reported Dear all, thanks for your feedback so far. With the help of a colleague I think I found the solution to my problem: pt(10,100,lower=FALSE) [1] 4.950844e-17 IS *NOT* EQUAL TO 1-pt(10,100,lower=TRUE) [1] 0

Re: [R] p-values 2.2e-16 not reported

2010-05-20 Thread Will Eagle
On 2010-05-20 08:52, Shi, Tao wrote: Will, I'm wondering if you have any insights after looking at the cor.test source code. It seems to be fine to me, as the p value is either calculated by your first method or a .C code. ...Tao Dear Tao, I think the described problem of p-values

[R] p-values 2.2e-16 not reported

2010-05-19 Thread Will Eagle
Dear all, how can I get the exact p-value of a statistical test like cor.test() if the p-value is below the default machine epsilon value of .Machine$double.eps = 2.220446e-16? At the moment smaller p-values are reported as p-value 2.2e-16. .Machine$double.eps - 1E-100 does not solve this

Re: [R] p-values 2.2e-16 not reported

2010-05-19 Thread Gustaf Rydevik
On Wed, May 19, 2010 at 10:53 AM, Will Eagle will.ea...@gmx.net wrote: Dear all, how can I get the exact p-value of a statistical test like cor.test() if the p-value is below the default machine epsilon value of .Machine$double.eps =  2.220446e-16? At the moment smaller p-values are

Re: [R] p-values 2.2e-16 not reported

2010-05-19 Thread Bert Gunter
AM To: r-help@r-project.org Subject: [R] p-values 2.2e-16 not reported Dear all, how can I get the exact p-value of a statistical test like cor.test() if the p-value is below the default machine epsilon value of .Machine$double.eps = 2.220446e-16? At the moment smaller p-values are reported

Re: [R] p-values 2.2e-16 not reported

2010-05-19 Thread Will Eagle
Dear all, thanks for your feedback so far. With the help of a colleague I think I found the solution to my problem: pt(10,100,lower=FALSE) [1] 4.950844e-17 IS *NOT* EQUAL TO 1-pt(10,100,lower=TRUE) [1] 0 This means that R is capable of providing p-values 2.2e-16, however, if the value