Description Usage Arguments Value
View source: R/simulate-conditional-bp.R
Simulate a single branching process conditioned on the given data
1 2 3 4 5 6 7 8 | simulate_cond_bp(
k,
n,
n_pos,
part_list = NULL,
one_init = FALSE,
g_weight_list = NULL
)
|
k |
cluster ID |
n |
number of people in the cluster |
n_pos |
number of positive smears in the cluster |
part_list |
a list of unique partitions with |
one_init |
logical. If TRUE, we assume the tree grew from one person |
g_weight_list |
a summary of part_list, gives the number of times generations of size g appear in a cluster of size n |
data frame with the following columns
order of infection in the cluster
-1 (negative) / + 1 (positive)
generation number (>=0)
ID of the infector
number of people infected by person
number of positive smears in the cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.