get_accuracy {o2ools} | R Documentation |
Calculate the accuracy of outbreak reconstruction
Description
Accuracy is defined as the proportion of correctly assigned ancestries across the posterior sample.
Usage
get_accuracy(out, true_tree)
Arguments
out |
An object of class |
true_tree |
A data frame with the true transmission tree, including 'from' and 'to' columns. |
Value
A numeric vector of accuracy values for each posterior tree.
Examples
true_tree <- data.frame(from = as.character(outbreaker2::fake_outbreak$ances), to = linelist$id)
get_accuracy(out, true_tree)
[Package o2ools version 0.0.1 Index]