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()).

Package details

AuthorThinh Ong [aut, cph] (ORCID: <https://orcid.org/0000-0001-6772-9291>), Anh Phan [aut, cre] (ORCID: <https://orcid.org/0009-0000-2129-435X>), Marc Choisy [aut] (ORCID: <https://orcid.org/0000-0002-5187-6390>), Niels Lohman [ctb], Bjoern Hoehrmann [ctb], Florian Loitsch [ctb], Ingo Berg [ctb]
MaintainerAnh Phan <anhptq@oucru.org>
LicenseMIT + file LICENSE
Version1.2.1
URL https://drthinhong.com/denim/ https://github.com/thinhong/denim
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("denim")

Try the denim package in your browser

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

denim documentation built on June 8, 2025, 11:12 a.m.