Description Usage Arguments Value
View source: R/simulate-conditional-bp.R
Assign an infector ID to someone in previous generation
1 | assign_infector(gen_vec, part, k)
|
gen_vec |
vector of generation numbers |
part, |
matrix of partitions g x 1 |
k |
cluster ID |
a vector of length n, which gives the id of the person who infected this one or NA if person is in first generation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.