Hello,

I can't find a package which calculates Kendall's tau-c. There is the
package Kendall, but it only calcuates Kendall's tau-b.

Here is the example from
ttp://www2.chass.ncsu.edu/garson/pa765/assocordinal.htm.

cityriots <- data.frame(citysize=c(1,1,2,2,3,3),
riotsize=c(1,2,1,2,1,2), weight=c(4,2,2,3,0,4))
cityriots <- data.frame(lapply(cityriots,function(x)
rep(x,cityriots$weight)))
xtabs(~ riotsize+citysize,cityriots)

tau-c should be .57.

Do you have a hint?

Best regards

Knut Wenzig

-- 
Dipl.-Sozialw. Knut Wenzig
Lehrstuhl fuer Soziologie und empirische Sozialforschung
Universitaet Augsburg | Universitaetsstrasse 6     |  86159 Augsburg
Tel ++49 821 598-4101 | FAX -4222 | ICQ: 210200999 |  Germany
http://www.philso.uni-augsburg.de/lehrstuehle/soziologie/sozio2/

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to