Skip to main content
QUICK REVIEW

[Paper Review] hesim: Health Economic Simulation Modeling and Decision Analysis

Devin Incerti, Jeroen P. Jansen|arXiv (Cornell University)|Feb 18, 2021
Health Systems, Economic Evaluations, Quality of LifeEconomics, Econometrics and Finance34 references12 citations
TL;DR

This paper introduces hesim, an R package for health economic simulation modeling and decision analysis, enabling probabilistic sensitivity analysis and cost-effectiveness evaluation through semi-Markov models and cohort simulation. It streamlines model development, enhances reproducibility, and supports transparent, scalable decision-making in health technology assessment.

ABSTRACT

Health economic models simulate the costs and effects of health technologies for use in health technology assessment (HTA) to inform efficient use of scarce resources. Models have historically been developed using spreadsheet software (e.g., Microsoft Excel) and while use of R is growing, general purpose modeling software is still limited. hesim is an R package that helps fill this gap by facilitating parameterization, simulation, and analysis of economic models in an integrated manner. Supported model types include cohort discrete time state transition models (cDTSTMs), individual continuous time state transition models (iCTSTMs), and partitioned survival models (PSMs), encompassing Markov (time-homogeneous and time-inhomogeneous) and semi-Markov processes. A modular design based on R6 and S3 classes allows users to combine separate submodels for disease progression, costs, and utility in a flexible way. Probabilistic sensitivity analysis (PSA) is used to propagate uncertainty in model parameters to model outputs. Simulation code is written in C++ so complex simulations such as those combining PSA and individual simulation can be run much more quickly than previously possible. Decision analysis within a cost-effectiveness framework is performed using simulated costs and quality-adjusted life years (QALYs) from a PSA.

Motivation & Objective

  • To develop a flexible, open-source R package for health economic simulation modeling to improve reproducibility and transparency in decision analysis.
  • To support probabilistic sensitivity analysis and cohort simulation in semi-Markov models for cost-effectiveness evaluation.
  • To streamline the implementation of complex health economic models using modular, reusable components in R.
  • To facilitate integration with existing R workflows for data analysis and visualization in health economics.
  • To enhance accessibility and scalability of decision models for researchers and health technology assessors.

Proposed method

  • The package implements semi-Markov models using a modular framework that separates model structure, parameterization, and simulation logic.
  • It supports cohort simulation through discrete-event simulation with flexible transition probabilities and state definitions.
  • Probabilistic sensitivity analysis is implemented via Monte Carlo sampling from probability distributions of model parameters.
  • The package uses R’s functional programming paradigm to enable code reuse and model extensibility.
  • It integrates with R’s ecosystem for statistical modeling, data manipulation, and visualization (e.g., dplyr, ggplot2).
  • Model outputs include incremental cost-effectiveness ratios, cost-effectiveness acceptability curves, and cost-effectiveness planes.

Experimental results

Research questions

  • RQ1How can health economic models be developed more reproducibly and transparently using software tools?
  • RQ2To what extent can an R package streamline the implementation of semi-Markov models in health technology assessment?
  • RQ3How does the use of probabilistic sensitivity analysis within hesim improve decision-making robustness?
  • RQ4Can hesim support scalable and modular development of complex decision models across diverse health economic applications?
  • RQ5How does hesim compare to existing modeling tools in terms of usability, performance, and integration with statistical workflows?

Key findings

  • The hesim package enables efficient and reproducible implementation of health economic models using R’s statistical and programming environment.
  • Semi-Markov models can be specified and simulated with minimal code, reducing development time and error risk.
  • Probabilistic sensitivity analysis is natively supported, allowing robust uncertainty quantification across parameter distributions.
  • The package facilitates the generation of cost-effectiveness acceptability curves and incremental cost-effectiveness ratios with minimal additional coding.
  • Integration with R’s ecosystem allows seamless data handling, visualization, and statistical validation of model outputs.
  • The modular design enhances code maintainability and supports collaboration across research teams.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.