assign_infector: Assign an infector ID to someone in previous generation

Description Usage Arguments Value

View source: R/simulate-conditional-bp.R

Description

Assign an infector ID to someone in previous generation

Usage

1
assign_infector(gen_vec, part, k)

Arguments

gen_vec

vector of generation numbers

part,

matrix of partitions g x 1

k

cluster ID

Value

a vector of length n, which gives the id of the person who infected this one or NA if person is in first generation


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.