kendall | R Documentation |
Kendall's distance measures the depth of the most recent common infector (MRCI) for each pair of nodes with respect to the source (patient 0).
kendall(tree)
tree |
A data frame representing a transmission tree, with the first column containing the infector IDs and the second the infectee IDs. |
A square, symmetric matrix of Kendall's distances between nodes.
A Metric to Compare Transmission Trees - M Kendall ยท 2018
findMRCIs
tree <- data.frame(from = c(1, 1, 2, 2, 3, 3), to = c(2, 3, 4, 5, 6, 7))
kendall(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.