compute_A_infects_B: Compute probability from samples that person A infects person...

Description Usage Arguments Value

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

Description

Compute probability from samples that person A infects person B

Usage

1

Arguments

df

data frame with the following columns

cluster_id

unique ID of cluster

prob_trans

individual probability of transmission

like

likelihood of cluster

id

id of person within cluster

inf_id

infector ID of person

feature_id

a unique person/or set of features across the MC clusters

Value

a n x n matrix where n is the number of individuals in the cluster. The rows correspond to the INFECTOR id and the columns to the INFECTED id. So entry i,j is the probability i infects j


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