Re: [R] programming advice

From: Fred JEAN <frederic.jean_at_univ-brest.fr>
Date: Fri 23 Jun 2006 - 19:57:36 EST

Martin Maechler wrote:
> [...]
> Just a note:
> Why are you making the detour of calling cor.test(.)
> when
> cor(nox, noy, method = "kendall")
>
> is probably all you need?

I use cor.test() because I want to test the value of Tau.

Thanks to everyone. I'll use the solution proposed by Ronggui.

The Kendall package solution is certainly also valuable but less direct (in my newbie opinion) : in fact x and y are extracted from a contingency table and I should use replace() to substitute "double NAs" to "double zeros"

Thanks again

-- 
Fred

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Jun 23 20:01:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 23 Jun 2006 - 22:12:05 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.