Learn R Programming

⚠️There's a newer version (0.5.5) of this package.Take me there.

Overview

hesim is an R package for health economic simulation modeling and decision analysis that provides a general framework for integrating statistical analyses with economic evaluation. The package currently supports N-state partitioned survival models (PSMs) and individual-level continuous time state transition models (CTSTMs), as well as summarizing the output of probabilistic sensitivity analysis (PSA). It is designed for high performance simulation modeling and heavily utilizes Rcpp and data.table. hesim is being actively developed and subsequent versions will provide support for cohort-level state transition models.

Features of the current version include:

  • N-state PSMs and individual-level CTSTMs
  • Modeling patient heterogeneity
  • Parameter estimates from either an R based model or from an external source
  • Sampling parameters of a statistical model fit with R using Monte Carlo methods or bootstrapping
  • Parameter uncertainty propagated with PSA
  • Performing cost-effectiveness analyses and representing decision uncertainty from PSAs
  • Simulation code written in C++ to boost performance

Installation

# Install the most up to date development version from GitHub:
# install.packages("devtools")
devtools::install_github("InnovationValueInitiative/hesim")

# Install v0.1 (without economic modeling) from CRAN:
install.packages("hesim")

Copy Link

Version

Install

install.packages('hesim')

Monthly Downloads

511

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Devin Incerti

Last Published

March 28th, 2019

Functions in hesim (0.2.0)

create_trans_dt

Create a data table of health state transitions
IndivCtstm

Individual-level continuous time state transition model
create_input_mats

Create input matrices
icea

Individualized cost-effectiveness analysis
stateval_tbl

Table to store state value parameters
mom_gamma

Method of moments for gamma distribution
params_joined_surv

Parameters of joined survival models
create_lines_dt

Create a data table of treatment lines
create_object_list

Form a list from ...
expand.hesim_data

Expand hesim_data
absorbing

Absorbing states
IndivCtstmTrans

Transitions for an individual-level continuous time state transition model
StateVals

Model for state values
check.input_mats

Input validation for class objects
fast_rgengamma

Random generation for generalized gamma distribution
check_edata

Check data argument for create_input_mats
hesim

hesim: an R package for high performance health-economic simulation modeling
hesim_data

Data for health-economic simulation modeling
create_params

Create a parameter object from a fitted model
params_lm_list

Parameters of a list of linear models
input_mats

Input matrices for a statistical model
joined

Join statistical models at specified times
params_surv

Parameters of a survival model
bootstrap

Bootstrap a statistical model
rcat

Random generation for categorical distribution
rdirichlet_mat

Random generation for multiple Dirichlet distributions
create_IndivCtstmTrans

Create IndivCtstmTrans object
ce

A cost-effectiveness object
ctstm3_exdata

Example data for a 3-state continuous time state transition model
expand

Expand object
partsurvfit

Partitioned survival regression object
icer_tbl

ICER table
summarize_ce

Summarize costs and effectiveness
surv_quantile

Survival quantiles
flexsurvreg_list

List of flexsurvreg objects
create_PsmCurves

Create PsmCurves object
incr_effect

Incremental treatment effect
lm_list

List of lm objects
params_joined_surv_list

Parameters of joined lists of survival models
formula_list

List of formula objects
mom_beta

Method of moments for beta distribution
params_lm

Parameters of a linear model
params_mean

Parameters of a mean model
params_surv_list

Parameters of a list of survival models
psm4_exdata

Example data for a 4-state partitioned survival model
weibullNMA

Parameterization of the Weibull distribution for network meta-analysis
hesim_survdists

List of survival distributions
create_StateVals

Create StateVals object
Psm

N-state partitioned survival model
PsmCurves

Partitioned survival curves
rpwexp

Random generation for piecewise exponential distribution