Description Usage Arguments Details Value
View source: R/sample-mc-binary-cov.R
Sample binary covariate transmission trees
1 2 3 4 5 | sample_mc_binary_cov(
B,
observed_cluster_summaries,
multiple_outside_transmissions = FALSE
)
|
B |
number of MC samples |
observed_cluster_summaries |
data frame with the following columns
|
multiple_outside_transmissions |
logical indicating whether to sample from the multiple outside transmissions model. Default is FALSE. |
A faster way to draw transmission trees when there is one binary covariate.
a data frame with the following columns, the last one is only needed for the multiple outsider model
frequency of cluster with the following characteristics
size of the cluster
number of x positives in the cluster
number of x negatives in the cluster
frequency of MC trees with the following
number of transmissions from a positive individual in the tree
number of transmissions from a negative individual in the tree
whether root node is pos or neg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.