epichains: Methods for simulating and analysing the size and length of transmission chains from branching process models ![](https://raw.githubusercontent.com/pratikunterwegs/epichains/main/man/figures/epichains_logo.png)
epichains is an R package to simulate, analyse, and visualize the size and length of branching processes with a given offspring distribution. These models are often used in infectious disease epidemiology, where the chains represent chains of transmission, and the offspring distribution represents the distribution of secondary infections caused by an infected individual.
epichains re-implements bpmodels by providing dedicated data structures that allow easy manipulation and interoperability with other existing packages for handling transmission chain and contact-tracing data.
epichains is developed at the Centre for the Mathematical Modelling of Infectious Diseases at the London School of Hygiene and Tropical Medicine as part of the Epiverse Initiative.
The latest development version of the epichains package can be installed via
# check whether {pak} is installed
if (!require("pak")) install.packages("pak")
pak::pak("epiverse-trace/epichains")
To load the package, use
library("epichains")
Work in progress
Specific use cases of epichains can be found in the online documentation as package vignettes, under “Articles”.
To report a bug please open an issue.
We welcome contributions to enhance the package’s functionalities. If you wish to do so, please follow the package contributing guide.
Please note that the epichains project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
citation("epichains")
#> To cite package epichains in publications use:
#>
#> Sebastian Funk, Flavio Finger, and James M. Azam (2023). epichains:
#> Analysing transmission chain statistics using branching process
#> models, website: https://github.com/epiverse-trace/epichains/
#>
#> A BibTeX entry for LaTeX users is
#>
#> @Manual{,
#> title = {epichains: Analysing transmission chain statistics using branching process models},
#> author = {{Sebastian Funk} and {Flavio Finger} and {James M. Azam}},
#> year = {2023},
#> url = {https://github.com/epiverse-trace/epichains/},
#> }