Accuracy of outbreak reconstruction is defined as the proportion of correctly assigned ancestries
across the posterior sample.
Usage
get_accuracy(est_tt, true_tt)
Arguments
- est_tt
A list of transmission trees. See get_trees
.
Each element is a data frame containing the transmission tree with columns 'from' and 'to'.
- true_tt
A data frame containing the true transmission tree. Columns 'from' and 'to' are required.
Value
A numeric vector of accuracy values for each posterior tree.