From p.dalgaard at biostat.ku.dk  Tue Apr  8 16:25:54 2003
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard BSA)
Date: Tue Apr  8 15:25:46 2003
Subject: [Rd] kendall's tau-b computation (PR#2742)
In-Reply-To: <200304072020.h37KKUpD029674@pubhealth.ku.dk>
References: <200304072020.h37KKUpD029674@pubhealth.ku.dk>
Message-ID: <x2d6jx86jh.fsf@biostat.ku.dk>

dan.field@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@biostat.ku.dk)             FAX: (+45) 35327907


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