summarize_binary_cov_trees: Condense trees into a smaller format

Description Usage Arguments Value

View source: R/sample-mc-binary-cov.R

Description

Condense trees into a smaller format

Usage

1
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


skgallagher/InfectionTrees documentation built on July 28, 2021, 2:14 p.m.