cgenolin at u-paris10.fr
2008-Oct-13 10:03 UTC
[R] Gower distance between a individual and a population
Hi the list, I need to compute Gower distance between a specific individual and all the other individual. The function DAISY from package cluster compute all the pairwise dissimilarities of a population. If the population is N individuals, that is arround N^2 distances to compute. I need to compute the distance between a specific individual and all the other individual, that is only N distances to compute. Is there a function that can do it ? Christophe
cgenolin at u-paris10.fr
2008-Oct-13 14:28 UTC
[R] Gower distance between a individual and a population
> If you used daisy, is there a problem with converting the resulting > object to a full dissimilarity matrix and extracting the relevant > row/column you need for the target site?Well, the lost of efficiantcy is huge. I need to compute the distance several time on data base that count 1000 or even 10 000 subjects. 10 000^2 cost a lot in term of time, whereas 10 000 does not. A solution would be to re-write DAISY and adapt it. But since I do not know fortran, I prefers first to ask if someone already did it... Christophe