[R] Kendall's tau-c
Knut Wenzig
knut.wenzig at phil.uni-augsburg.de
Tue Sep 12 15:02:38 CEST 2006
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/
More information about the R-help
mailing list