Looks at most likely transmissions from A to B for a cluster

mc_trees_to_A_infects_B(
  my_id,
  par_ests,
  mc_trees,
  output = "tidy",
  multiple_outside_transmissions = FALSE
)

Arguments

my_id

ID of cluster to analyze

par_ests

parameter estimates (must be named and have corresponding columns in mc_trees)

mc_trees

output from sample_mc_trees

output

either "tidy" or "matrix"

multiple_outside_transmissions

logical indicating which model to calculate likelihood

Value

either a \(n \times n\) matrix where \(n\) is the number of individuals in the cluster and entry \(i,j\) is the probability that individual A infects individual B or a data frame with the following columns

infector

ID of the infector