Sample binary covariate transmission trees
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 data frame of sampled transmission trees 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
@export