R/indData.R

#' Individual-level simulated outbreak dataset
#' 
#' A dataset of an outbreak of 100 individuals starting from one case.
#' It was simulated with using the package TransPhylo with parameters resembling TB:
#' \itemize{
#' \item average reproductive number = 1.2
#' \item generation interval = gamma(1.2, 2) years
#' \item outbreak duration = 14 years
#' \item mutation rate 0.5 snps/genome/year
#' }
#' 
#' @format A data frame with 100 rows and 8 variables:
#' \describe{
#' \item{individualID}{An individual-level id for each case.}
#' \item{infector}{The individualID of the true infector.}
#' \item{infectionDate}{The date and time of infection.}
#' \item{sampleDate}{The date and time of sampling.}
#' \item{X1}{Covariate with 2 values: a, b (e.g. sex).}
#' \item{X2}{Covariate with 4 values: a, b, c, d (e.g. nationality).}
#' \item{X3}{Covariate with 2 values: a, b (e.g. homelessness).}
#' \item{X4}{Covariate with 10 values: a-j (e.g. county of residence).}
#' }
#' 
#' @references
#' Didelot X, Fraser C, Gardy J, Colijn C. Genomic Infectious Disease Epidemiology in Partially
#' Sampled and Ongoing Outbreaks. Mol Biol Evol. 2017;34(4):997-1007.  
#' 
"indData"

Try the nbTransmission package in your browser

Any scripts or data that you put into this service are public.

nbTransmission documentation built on Jan. 7, 2021, 1:07 a.m.