Functions and Data for "Epidemics: Models and Data in R (2nd Edition)"
Overview
Functions, data sets and shiny apps for "Epidemics: Models and Data in R (2nd edition)" by Ottar N. Bjornstad (2022, ISBN: 978-3-031-12055-8) doi:10.1007/978-3-031-12056-5. The package contains functions to study the Susceptible-Exposed-Infected-Removed SEIR model, spatial and age-structured Susceptible-Infected-Removed SIR models; time-series SIR and chain-binomial stochastic models; catalytic disease models; coupled map lattice models of spatial transmission and network models for social spread of infection.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK8 OK2026-04-01
Documentation
- Help pages
- 87
- Examples that run
- 88%38 run in a plain check (9 of them under a condition) · 4 only when donttest examples are enabled (R CMD check --as-cran) · 1 hold no code
- Exported functions with examples
- 98%
- Documented parameters
- 99%
- Return-value docs
- 79%
- Help pages citing references
- 1%
Downloads
Repository
Stars over time
Forks over time
Issues over time
PRs over time
Checks run against github.com/objornstad/epimdr2 on 2026-10-18.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing epimdr2 adds 72 packages (40 with compiled code, 72 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2026-03-31
- 1.1-1Latest
- archivedRemoved from CRAN2025-07-10issues were not corrected despite reminders
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.0-92022-12-15 · diff ↗
- 1.0-82022-11-21 · diff ↗
- 1.0-72022-09-14
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-09-14
- Total releases
- 4 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 1.8 MB / 41 files
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("epimdr2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.