search for: rankby

Displaying 1 result from an estimated 1 matches for "rankby".

Did you mean: frankly
2010 Apr 23
0
A distance measure between top-k list
...st of top 20 students chosen by each judge. The following paper gives out a few measures for such problem www.almaden.ibm.com/cs/people/fagin/topk.pdf Now I have written the code for the kendal's - measure of distance here is the code topklist <- function(df1,df2,matchby="name",rankby="pat",p=0.5, normalize=TRUE){ library(gtools) df1$rank <- rank(-df1[,rankby],ties.method="first") df2$rank <- rank(-df2[,rankby],ties.method="first") dftmp <- merge(df1,df2,matchby,all=TRUE) rownames(dftmp) <- dftmp[,matchby] df <- combinations(length(df...