Health Economic Simulation Modeling and Decision Analysis
Overview
A modular and computationally efficient R package for parameterizing, simulating, and analyzing health economic simulation models. The package supports cohort discrete time state transition models (Briggs et al. 1998) doi:10.2165/00019053-199813040-00003, N-state partitioned survival models (Glasziou et al. 1990) doi:10.1002/sim.4780091106, and individual-level continuous time state transition models (Siebert et al. 2012) doi:10.1016/j.jval.2012.06.014, encompassing both Markov (time-homogeneous and time-inhomogeneous) and semi-Markov processes. Decision uncertainty from a cost-effectiveness analysis is quantified with standard graphical and tabular summaries of a probabilistic sensitivity analysis (Claxton et al. 2005, Barton et al. 2008) doi:10.1002/hec.985, doi:10.1111/j.1524-4733.2008.00358.x. Use of C++ and data.table make individual-patient simulation, probabilistic sensitivity analysis, and incorporation of patient heterogeneity fast.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 107 (26 internal)includes a package overview page
- Examples that run
- 98%56 run in a plain check · 1 never run
- Exported functions with examples
- 69%
- Documented parameters
- 95%
- Return-value docs
- 74%
- Help pages citing references
- 4%
Downloads
Repository
- PRs merged (all time)
- 96%
- Median days to close, 50 most recently updated closed issues
- 23
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
11 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/hesim-dev/hesim on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-16 · The repository has a site deploy workflow
pkgdown site last built 2026-01-16
Show all practicesHide 2 practices
This repository has an AI review tool set up.
- Copilot code reviewCommits: some accepting its review suggestions, count not recorded
Dependencies
Installing hesim adds 48 packages (31 with compiled code, 45 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
- 0.5.8Latest
- 0.5.72025-10-11 · diff ↗
- 0.5.62025-09-29 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.5.52024-09-19 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.5.42024-02-12 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.5.32022-09-03 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.5.22022-03-31 · diff ↗
- 0.5.12021-07-26 · diff ↗ ·
removed 9 exports
bootstrap, joined_flexsurvreg, joined_flexsurvreg_list, joined_formula, joined_formula_list, normboot, params_joined_surv, params_joined_surv_list, params_lm_listadded 6 exports
as.data.table, sim_costs, sim_ev, sim_qalys, sim_stateprobs, survival - RR 4.1.0 released · 2021-05-18
- 0.5.02021-02-17 · diff ↗ ·
added 10 exports
CtstmTrans, autoplot, get_labels, icer, normboot, plot_ceac, plot_ceaf, plot_ceplane, plot_evpi, set_labels - 0.4.2
Show 15 earlier eventsHide 15 earlier events
- 0.4.12020-10-05 · diff ↗
- 0.4.0
- 0.3.12020-06-03 · diff ↗
- 0.3.02020-05-25 · diff ↗ ·
removed 1 export
params_meanadded 18 exports
CohortDtstm, CohortDtstmTrans, create_CohortDtstm, create_CohortDtstmTrans, define_model, define_rng, define_tparams, eval_model, eval_rng, id_attributes, multinom_list, params_mlogit, params_mlogit_list, time_intervals, tparams_mean, tparams_transprobs, tpmatrix, tpmatrix_names - RR 4.0.0 released · 2020-04-24
- unarchivedReturned to CRAN2020-03-17
- archivedRemoved from CRAN2020-03-17check problems were not corrected in time
- 0.2.32020-03-17 · diff ↗
- 0.2.22019-11-26 · diff ↗
- 0.2.12019-07-03 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.2.02019-03-29 · diff ↗ ·
removed 1 export
custom_tableadded 46 exports
HweibullNMA, IndivCtstm, IndivCtstmTrans, Psm, PsmCurves, StateVals, bootstrap, create_IndivCtstmTrans, create_PsmCurves, create_StateVals, create_input_mats, create_lines_dt, create_params, create_trans_dt, dweibullNMA, expand, fast_rgengamma, flexsurvreg_list, formula_list, hesim_data, hesim_survdists, hweibullNMA, icer_tbl, input_mats, joined_flexsurvreg, joined_flexsurvreg_list, joined_formula, joined_formula_list, lm_list, mean_weibullNMA and 16 more - RR 3.5.0 released · 2018-04-23
- 0.1.02017-12-03
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-12-03
- Total releases
- 19 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 433 KB / 5 files
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("hesim")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.