Condense trees into a smaller format

summarize_binary_cov_trees(trees, multiple_outside_transmissions = FALSE)

Arguments

trees

data frame with the following columns

cluster_id

cluster ID

n_inf

number of infected by this individual

x

binary covariate value (0/1)

gen

generation number

multiple_outside_transmissions

default is FALSE

Value

data frame with the following columns

mc_freq

number of MC trees where this occurred

cluster_size

size of cluster

x_pos

number of positive x

x_neg

number of negative x

x_pos_trans

number of transmissions from positives

x_neg_trans

number of transmissions from negatives

root_node

value of the root node