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

Description Usage Arguments Value

View source: R/vis-A-infects-B.R

Description

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

Usage

1
2
3
4
5
6
7
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


skgallagher/InfectionTrees documentation built on July 28, 2021, 2:14 p.m.