
Compute the Kendall distance matrix
kendall.RdKendall's distance measures the depth of the most recent common infector (MRCI) for each pair of nodes with respect to the source (patient 0).
Examples
if (FALSE) { # \dontrun{
# Only run this example if treespace is installed
if (requireNamespace("treespace", quietly = TRUE)) {
tree <- data.frame(from = c(1, 1, 2, 2, 3, 3), to = c(2, 3, 4, 5, 6, 7))
kendall(tree)
}
} # }