denim: Generate and Simulate Deterministic Discrete-Time Compartmental Models

R package to build and simulate deterministic discrete-time compartmental models that can be non-Markov. Length of stay in each compartment can be defined to follow a parametric distribution (d_exponential(), d_gamma(), d_weibull(), d_lognormal()) or a non-parametric distribution (nonparametric()). Other supported types of transition from one compartment to another includes fixed transition (constant()), multinomial (multinomial()), fixed transition probability (transprob()).

Version: 1.0.0
Imports: Rcpp (≥ 1.0.6), viridisLite
LinkingTo: Rcpp, testthat
Suggests: covr, knitr, rmarkdown, testthat (≥ 3.0.0), xml2, deSolve, DiagrammeR
Published: 2024-06-05
DOI: 10.32614/CRAN.package.denim
Author: Thinh Ong ORCID iD [aut, cph], Anh Phan [aut, cre], Marc Choisy ORCID iD [aut], Niels Lohman [ctb], Bjoern Hoehrmann [ctb], Florian Loitsch [ctb], Ingo Berg [ctb]
Maintainer: Anh Phan <anhptq at>
License: MIT + file LICENSE
NeedsCompilation: yes
Materials: README NEWS
CRAN checks: denim results


Reference manual: denim.pdf
Vignettes: denim: deterministic discrete-time model with memory
denim vs deSolve


Package source: denim_1.0.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): denim_1.0.0.tgz, r-oldrel (arm64): denim_1.0.0.tgz, r-release (x86_64): denim_1.0.0.tgz, r-oldrel (x86_64): denim_1.0.0.tgz


Please use the canonical form to link to this page.