MyNixOS website logo
Description

Health Economic Simulation Modeling and Decision Analysis.

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.

Health economic simulation modeling

CRAN_Status_Badge R buildstatus CoverageStatus

Overview

hesim is a modular and computationally efficient R package for health economic simulation modeling and decision analysis that provides a general framework for integrating statistical analyses with economic evaluation. The package supports cohort discrete time state transition models (DTSTMs), N-state partitioned survival models (PSMs), and individual-level continuous time state transition models (CTSTMs), encompassing both Markov (time-homogeneous and time-inhomogeneous) and semi-Markov processes. It heavily utilizes Rcpp and data.table, making individual-level simulation, probabilistic sensitivity analysis (PSA), and incorporation of patient heterogeneity fast.

Features of the current version can be summarized as follows:

  • Cohort DTSTMs, individual-level CTSTMs, and N-state PSMs that encompass Markov and semi-Markov processes
  • Options to build models directly from fitted statistical models or by defining them in terms of expressions
  • Parameter estimates from either an R based model or from an external source
  • Convenience functions for sampling model parameters from parametric distributions or via bootstrapping
  • Parameter uncertainty propagated with PSA
  • Modeling patient heterogeneity
  • Performing cost-effectiveness analyses and representing decision uncertainty from PSAs
  • Simulation code written in C++ to boost performance

Installation

You can install the current release from CRAN or the most up to date development version from GitHub.

# Install from CRAN:
install.packages("hesim")

# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("hesim-dev/hesim")

Getting started

There are two good places to start:

  1. The Introduction to hesim article provides a quick introduction.

  2. Our preprint describes the package (including mathematical details) more thoroughly.

You might also want to explore our example analyses which can be found in the preprint and web articles. They are summarized in the table below, with some drawn from the Decision Modeling for Health Economic Evaluation textbook. Key areas of focus are the (i) statistical models of disease progression (in terms of the baseline risk and relative treatment effects) and (ii) the available data (either individual patient data (IPD) or aggregate-level data).

Baseline risk

Treatment effect

Name Model Disease model Disease data Disease model Disease data Application
1 Preprint 4.1 iCTSTM Multi-state model IPD Coefficient (AFT) IPD Oncology
2 Preprint 4.2 PSM Survival models IPD Coefficient (AFT) Aggregate Oncology
3 Preprint 4.3 cDTSTM Multi-state model (panel data) IPD RR Aggregate Oncology
4 Simple Markov cohort cDTSTM Multinomial Aggregate RR Aggregate HIV
5 Time inhomogeneous Markov (cohort) cDTSTM Custom Aggregate Coefficient (HR) Aggregate Hip replacement
6 Multinomial logit cDTSTM Multinomial logit IPD Coefficient (OR) IPD Generic
7 Time inhomogeneous Markov (individual) iCTSTM Custom Aggregate Coefficient (HR) Aggregate Hip replacement
8 Semi-Markov multi-state iCTSTM Multi-state model IPD Coefficient (AFT) IPD Generic
9 4-state PSM PSM Survival models IPD Coefficient (AFT) IPD Oncology
Note: iCTSTM = Individual-level continuous time state transition model; PSM = partitioned survival model; cDTSTM = Cohort discrete time state transition model. AFT = accelerated failure time; RR = relative risk; HR = hazard ratio; OR = odds ratio. IPD = individual patient data.

Citing hesim

If you use hesim, please cite as follows:

  Devin Incerti and Jeroen P Jansen (2021). hesim: Health Economic
  Simulation Modeling and Decision Analysis. arXiv:2102.09437
  [stat.AP], URL https://arxiv.org/abs/2102.09437.

A BibTeX entry for LaTeX users is

  @Misc{incerti2021hesim,
    author = {Devin Incerti and Jeroen P. Jansen},
    title = {hesim: Health Economic Simulation Modeling and Decision Analysis},
    year = {2021},
    eprint = {2102.09437},
    archiveprefix = {arXiv},
    primaryclass = {stat.AP},
    url = {https://arxiv.org/abs/2102.09437},
  }
Metadata

Version

0.5.4

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows