Sample trees with given generation sizes

sample_trees_fixed_g(perm_mat)

Arguments

perm_mat

g x B matrix where each column is a unique permutation of generation sizes

Value

data frame with the following columns

cluster_id

unique cluster ID

id

person ID

gen

generation number

n_inf

number infected by this person