Skip to content

hesim

0.5.8Package record

Health Economic Simulation Modeling and Decision Analysis

0packages dependsuggested by 1
8.5Kdownloads / year
91.8%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 16.3 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.5.8
READMEYes · 958 wordsVignettesYes · 8 · dynamicNEWS· In the repository, left out of the releaseCitation fileYes · software entry onlyWebsiteYes · pkgdown
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

8.5K
CRAN downloads in the past year
Rank #4,858 · ~23/day · ~712/mo
Daily download trend is not available in this view yet.
75430 days
1.7K90 days
8.5K1 year
Compare downloads with other packages →
Also on495 r2u12 autocran

Repository

78Stars
21Forks
15Open issues
3Open PRs
18Releases
1,052Commits
7Commit identities
rsimulation-modelinghealth-economic-evaluationmicrosimulation
1,052 commits · Last activity 2026-01-16 · +1.3% stars, 30d
Responsiveness
How these are sampled
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

2026-07-14 · 762026-10-10 · 78
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
CODEOWNERS
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-01-16 · The repository has a site deploy workflow

pkgdown site last built 2026-01-16

Coverage (2)
Coverage reporting.covrignore
Show all practicesHide 2 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository has an AI review tool set up.

Review tools
  • Copilot code review
    Commits: some accepting its review suggestions, count not recorded
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
Imports (9)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (4)
Author, Maintainer since 0.1.0 (2017)
Author · added in 0.5.4
Author · added in 0.2.0
Contributor · added in 0.2.3
hesim uses some slightly modified C functions from base R
Releases (19)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.8Latest
    record
    2026-01-13 · current release · diff ↗
  • 0.5.7
    record
    2025-10-11 · diff ↗
  • 0.5.6
    record
    2025-09-29 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.5.5
    record
    2024-09-19 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5.4
    record
    2024-02-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5.3
    record
    2022-09-03 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.5.2
    record
    2022-03-31 · diff ↗
  • 0.5.1
    record
    2021-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_list
    added 6 exports
    as.data.table, sim_costs, sim_ev, sim_qalys, sim_stateprobs, survival
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5.0
    record
    2021-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
    record
    2020-12-07 · diff ↗ ·
    added 6 exports
    apply_rr, as_array3, as_pfs_os, as_tbl2, expmat, qmatrix
Show 15 earlier eventsHide 15 earlier events
  • 0.4.1
    record
    2020-10-05 · diff ↗
  • 0.4.0
    record
    2020-09-29 · diff ↗ ·
    added 3 exports
    cea, cea_pw, tpmatrix_id
  • 0.3.1
    record
    2020-06-03 · diff ↗
  • 0.3.0
    record
    2020-05-25 · diff ↗ ·
    removed 1 export
    params_mean
    added 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
  • R
    R 4.0.0 released · 2020-04-24
  • unarchivedReturned to CRAN
    2020-03-17
  • archivedRemoved from CRAN
    2020-03-17
    check problems were not corrected in time
  • 0.2.3
    record
    2020-03-17 · diff ↗
  • 0.2.2
    record
    2019-11-26 · diff ↗
  • 0.2.1
    record
    2019-07-03 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.0
    record
    2019-03-29 · diff ↗ ·
    removed 1 export
    custom_table
    added 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
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.0
    record
    2017-12-03
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for hesim version 0.5.8 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy