Kendall's tau-b estimate
Calculates the Kendall's tau-b.
ktau(x, y)
x
: first variabley
: second variablektau returns Kendall's tau-b.
ktau computes the same quantity as cor(x, y, method="kendall"). It uses a faster algorithm than pairwise comparisons used by cor.
set.seed(1234) x <- rnorm(10000); y <- x+rnorm(10000) cor(x, y, method="k") clinfun:::ktau(x,y)
Useful links