simulate_many_cond_bp: Wrapper for simulate_cond_bp

Description Usage Arguments Value

View source: R/simulate-conditional-bp.R

Description

Wrapper for simulate_cond_bp

Usage

1
2
3
4
5
6
7
8
simulate_many_cond_bp(
  K,
  n_vec,
  n_pos_vec,
  part_list = NULL,
  g_weight_list = NULL,
  one_init = FALSE
)

Arguments

K

number of clusters to generate

n_vec

number of people in each cluster

n_pos_vec

number of positive smears in each cluster

part_list

a list of unique partitions with

g_weight_list

a summary of part_list, gives the number of times generations of size g appear in a cluster of size n

cluster_id
person_id

order of infection in the cluster

smear

-1 (negative) / + 1 (positive)

gen

generation number (>=0)

inf_id

ID of the infector

n_inf

number of people infected by person

cluster_pos

number of positive smears in the cluster

one_init

logical. If TRUE, we assume the tree grew from one person

Value

data frame with the following columns


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.