[R] Kendall's tau-c

From: Knut Wenzig <knut.wenzig_at_phil.uni-augsburg.de>
Date: Tue 12 Sep 2006 - 13:02:38 GMT


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

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

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Sep 12 23:12:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 12 Sep 2006 - 19:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.