
cor(..., method="kendall")
.
The calculation of confidence intervals however would not be found there.KendallTauB(x, y = NULL, conf.level = NA, ...)
x
. If y is provided, table(x, y, ...)
is calculated.table
, allowing i.e. to set useNA. This refers only to the vector interface.ConDisPairs
yields concordant and discordant pairs
Other association measures:
GoodmanKruskalTauA
(tau-a), cor
(method="kendall") for tau-b, StuartTauC
(tau-c), SomersDelta
Lambda
, 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)
Run the code above in your browser using DataLab