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 from CRAN:
install.packages("hesim")

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

Copy Link

Version

Install

install.packages('hesim')

Monthly Downloads

511

Version

0.2.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Devin Incerti

Last Published

March 17th, 2020

Functions in hesim (0.2.3)

PsmCurves

Partitioned survival curves
absorbing

Absorbing states
check_edata

Check data argument for create_input_mats
IndivCtstmTrans

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

N-state partitioned survival model
IndivCtstm

Individual-level continuous time state transition model
StateVals

Model for state values
create_trans_dt

Create a data table of health state transitions
create_params

Create a parameter object from a fitted model
create_IndivCtstmTrans

Create IndivCtstmTrans object
check.input_mats

Input validation for class objects
icer_tbl

ICER table
flexsurvreg_list

List of flexsurvreg objects
create_StateVals

Create StateVals object
create_PsmCurves

Create PsmCurves object
create_input_mats

Create input matrices
formula_list

List of formula objects
icea

Individualized cost-effectiveness analysis
bootstrap

Bootstrap a statistical model
ce

A cost-effectiveness object
lm_list

List of lm objects
mom_beta

Method of moments for beta distribution
create_lines_dt

Create a data table of treatment lines
hesim

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

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

Form a list from ...
incr_effect

Incremental treatment effect
params_joined_surv_list

Parameters of joined lists of survival models
hesim_data

Data for health-economic simulation modeling
hesim_survdists

List of survival distributions
rcat

Random generation for categorical distribution
rdirichlet_mat

Random generation for multiple Dirichlet distributions
expand

Expand object
expand.hesim_data

Expand hesim_data
params_lm

Parameters of a linear model
partsurvfit

Partitioned survival regression object
params_lm_list

Parameters of a list of linear models
params_joined_surv

Parameters of joined survival models
mom_gamma

Method of moments for gamma distribution
input_mats

Input matrices for a statistical model
fast_rgengamma

Random generation for generalized gamma distribution
params_mean

Parameters of a mean model
psm4_exdata

Example data for a 4-state partitioned survival model
params_surv

Parameters of a survival model
joined

Join statistical models at specified times
rpwexp

Random generation for piecewise exponential distribution
stateval_tbl

Table to store state value parameters
weibullNMA

Parameterization of the Weibull distribution for network meta-analysis
summarize_ce

Summarize costs and effectiveness
surv_quantile

Survival quantiles
params_surv_list

Parameters of a list of survival models