igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Kendall's tau of two graph ranking list


From: Gabor Csardi
Subject: Re: [igraph] Kendall's tau of two graph ranking list
Date: Thu, 3 Jul 2008 03:57:14 -0500
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Thu, Jul 03, 2008 at 12:10:02AM +0200, Tamas Nepusz wrote:
> Hi,
>
>> I uses cov(x, y, method="kendall") . But it did not work.
> Without any further detailed knowledge about R (I assume you are using  
> that), I think that in order to use cov() or cor(), you should provide  
> the rankings to cov(...). Example:

I don't think so. Just provide the data, it works well for me,
but perhaps you want to use 'cor' instead of 'cov'.

L1 <- runif(100)
L2 <- runif(100)
cor(L1, L2, method="kendall")
cor(L1, L1*2+2, method="kendall")
cor(L1, -L1/2-3, method="kendall")

G.

[...]

-- 
Csardi Gabor <address@hidden>    UNIL DGM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]