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:
R
based model or from an
external sourceC++
to boost performanceYou 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")
install.packages('hesim')
R6
base class for continuous time state transition modelscreate_input_mats
...
CohortDtstmTrans
objectIndivCtstmTrans
objectdata.table
flexsurvreg
objectsCohortDtstm
objectmsm
objectPsmCurves
objectStateVals
objectlm
objectsmultinom
objectshesim
: Health Economic Simulation Modeling and Decision Analysisformula
objects