Description Usage Arguments Details Value
View source: R/simulate-flip-til-failure.R
Simulate the process of flipping until failure for a single cluster
1 | flip_til_failure(cluster_id, inf_params, smear_pos_prob, max_size = 30)
|
cluster_id |
unique ID of the cluster |
inf_params |
vector with beta_0 and beta_1 |
smear_pos_prob |
probability of a smear positsive |
max_size |
maximum size a cluster can be |
breadth not depth. Generate generation by generation as opposed to going up the branch til termination.
data frame with the following columns
unique cluster ID
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
number in cluster
whether the cluster end was censored or not
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.