Re: [Rd] Fast Kendall's tau

2012-06-27 Thread Adler, Avraham
> From: Terry Therneau [mailto:thern...@mayo.edu] > Sent: Wednesday, June 27, 2012 8:16 AM > To: r-devel@r-project.org; ad...@smtprelay.mayo.edu; Adler, Avraham > Subject: Re: Fast Kendall's tau > > Note that the survConcordance function, which is equivalent to Kendall's tau, > also is O(n log n)

Re: [Rd] Fast Kendall's Tau

2012-06-27 Thread Adler, Avraham
> -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Wednesday, June 27, 2012 1:24 AM > To: Duncan Murdoch > Cc: Adler, Avraham; r-devel@r-project.org > Subject: Re: [Rd] Fast Kendall's Tau > > On 26/06/2012 22:44, Duncan Murdoch wrote: >> On 12-06-25 2:48

Re: [Rd] Fast Kendall's tau

2012-06-27 Thread Terry Therneau
Note that the survConcordance function, which is equivalent to Kendall's tau, also is O(n log n) and it does compute a variance. The variance is about 4/5 of the work. Using R 2.15.0 on an older Linux box: > require(survival) > require(pcaPP) > tfun <- function(n) { + x <- 1:n + runif(n