Extract posterior transmission trees
get_trees.Rd
Generates a list of data frames representing posterior transmission trees from an outbreaker_chains
object.
Each tree is represented as a data frame with 'from' and 'to' columns, and optionally includes additional columns.
Arguments
- out
A data frame of class
outbreaker_chains
.- kappa
A logical indicating whether to include
kappa
values in the output. Default isFALSE
.- t_inf
A logical indicating whether to include infection times (
t_inf
) in the output. Default isFALSE
.- ...
Additional named vectors from the original linelist to include as columns (e.g.,
loc = linelist$location
).