get_accuracy | R Documentation |
Accuracy is defined as the proportion of correctly assigned ancestries across the posterior sample.
get_accuracy(out, true_tree)
out |
An object of class |
true_tree |
A data frame with the true transmission tree, including 'from' and 'to' columns. |
A numeric vector of accuracy values for each posterior tree.
true_tree <- data.frame(from = as.character(outbreaker2::fake_outbreak$ances), to = linelist$id)
get_accuracy(out, true_tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.