R/vis-A-infects-B.R
mc_trees_to_A_infects_B.Rd
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 )
my_id | ID of cluster to analyze |
---|---|
par_ests | parameter estimates (must be named and
have corresponding columns in |
mc_trees | output from |
output | either |
multiple_outside_transmissions | logical indicating which model to calculate likelihood |
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
ID of the infector