[Rd] kendall's tau-b computation (PR#2742)

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Apr 8 16:25:54 MEST 2003


dan.field at av.com writes:

> In kendall.c (library is ctest), the limits for the first loop in routine
> kendall_tau run from 0 through n-1, and the inner loop runs from 0 through i-1. 
> This causes the each pair at index i to be compared with itself; my
> understanding is that there should only be n*(n-1)/2 pairs under consideration
> for concordance, discordance, and ties.

??? 

Are you saying that j==i becomes true, when j runs from 0 to i-1?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-devel mailing list