All Kendall's distances between two sets of rankings.

Share:

Description

Calculates all of the Kendall's distances between two different sets of rankings.

Usage

1
  AllKendall(r, seqs, data.info = NULL)

Arguments

r

One set of sequences.

seqs

Another set of sequences.

data.info

Optional argument, a 0/1/NA matrix specifying all of the relevant information to calculate Kendall's difference for "r". Used for efficiency in "Solve".

Value

Matrix where output[i, j] represents the distance from sequence "i" in "r" to sequence "j" in "seqs".

Author(s)

Erik Gregory

Examples

1
2
3
data1 <- do.call("rbind", list(1:5, 5:1, c(3, 2, 1, 4, 5)))
data2 <- do.call("rbind", list(1:5, 5:1))
# AllKendall(data1, data2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.