| KendallTauB {DescTools} | R Documentation |
Calculate Kendall's tau-b. The estimator could also be calculated with cor(..., method="kendall").
The calculation of confidence intervals however would not be found there.
KendallTauB(x, y = NULL, conf.level = NA, ...)
x |
a numeric vector, matrix or data.frame. |
y |
NULL (default) or a vector with compatible dimensions to |
conf.level |
confidence level of the interval. If set to |
... |
further arguments are passed to the function |
a single numeric value if no confidence intervals are requested,
and otherwise a numeric vector with 3 elements for the estimate, the lower and the upper confidence interval
Andri Signorell <andri@signorell.net>
Agresti, A. (2002) Categorical Data Analysis. John Wiley & Sons, pp. 57-59.
ConDisPairs yields concordant and discordant pairs
Other association measures:
GoodmanKruskalGamma, KendallTauA (tau-a), cor (method="kendall") for tau-b, StuartTauC (tau-c), SomersDelta
Lambda, GoodmanKruskalTau, UncertCoef, MutInf
# example in: # http://support.sas.com/documentation/cdl/en/statugfreq/63124/PDF/default/statugfreq.pdf # pp. S. 1821 tab <- as.table(rbind(c(26,26,23,18,9),c(6,7,9,14,23))) KendallTauB(tab, conf.level=0.95)