Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-09-01 Thread Peter Dalgaard
Andrew Yee wrote: > Thanks for the clarification. I should have recognized the difference > between "warning" and "error." > But if I may take this a step further, shouldn't it then be exact=TRUE > instead of exact=NULL? > Thanks, > Andrew > Nope. The two are equivalent for the Spearman test,

Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-09-01 Thread Andrew Yee
Thanks for the clarification. I should have recognized the difference between "warning" and "error." But if I may take this a step further, shouldn't it then be exact=TRUE instead of exact=NULL? Thanks, Andrew On 8/31/07, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > > Andrew Yee wrote: > > Pardon

Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-08-31 Thread Peter Dalgaard
Andrew Yee wrote: > Pardon my ignorance, but is there a difference in cor.test between > exact=FALSE and exact=NULL when method=spearman? > > Take for example: > > x<-c(1,2,2,3,4,5) > y<-c(1,2,2,10,11,12) > cor.test(x,y, method="spearman", exact=NULL) > > This gives an error message, > Warning mess

[R] in cor.test, difference between exact=FALSE and exact=NULL

2007-08-23 Thread Andrew Yee
Pardon my ignorance, but is there a difference in cor.test between exact=FALSE and exact=NULL when method=spearman? Take for example: x<-c(1,2,2,3,4,5) y<-c(1,2,2,10,11,12) cor.test(x,y, method="spearman", exact=NULL) This gives an error message, Warning message: Cannot compute exact p-values w