abouheif | R Documentation |
The Abouheif distance is the product of the number of direct descendants of each node in the path between two nodes. It is a measure of the number of transmission events between two nodes.
abouheif(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 Abouheif distances between nodes.
tree <- data.frame(from = c(1, 1, 2, 2, 3, 3), to = c(2, 3, 4, 5, 6, 7))
abouheif(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.