R/sample-mc-binary-cov.R
sample_mc_binary_cov_inner.Rd
Innfer function to sample MC trees with binary covariates
sample_mc_binary_cov_inner(x_pos, x_neg, B, root_node = NULL)
x_pos | number of positive individuals in cluster |
---|---|
x_neg | number of negative individuals in cluster |
B | number of trees to sample |
root_node | if NULL, use the base model. If 1, ensure that the root node is positive. If 0, ensure that the root node is negative. |
a data frame with the following columns
total size of the cluster
number of individuals in the cluster with the feature of interest =1
number of individuals in the cluster with the feature of interest =0
number of MC frequency of clusters
number of transmissions from a positive
number of transmissions from a negative
only for the multiple outsider. Is 1 if the outsider is positive and 0 if it is negative