summarize_clusters: Summarize the clusters

Description Usage Arguments Value

View source: R/simulate-flip-til-failure.R

Description

Summarize the clusters

Usage

1
summarize_clusters(clusters_df)

Arguments

clusters_df

a data frame with

Value

data frame with the following columns

cluster_id

unique 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

cluster_size

number in cluster

censored

whether the cluster end was censored or not

data frame with

n

number in cluster

n_pos

number of positive smears in cluster

freq

frequency this occurs


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