Learn R Programming

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

heemod - Health Economic Evaluation MODelling

Markov Models for Health Economic Evaluations. An implementation of the modelling and reporting features described in reference textbooks and guidelines: deterministic and probabilistic sensitivity analysis, heterogeneity analysis, time dependency on state-time and model-time (semi-Markov and non-homogeneous Markov models), etc.

You can install:

  • the latest released version from CRAN with:
install.packages("heemod")
  • the latest development version from github with:
devtools::install_github("aphp/heemod")
  • heemod can be cited with:

Filipović-Pierucci A, Zarca K and Durand-Zaleski I (2017). “Markov Models for Health Economic Evaluation: The R Package heemod.” ArXiv e-prints. R package version 0.8.0, 1702.03252

Features

Main features:

  • Accounting for time-dependency:
    • For both model time and state time.
    • Time-varying transition probabilities.
    • Time-varying values attached to states.
  • Probabilistic uncertainty analysis (PSA).
    • With correlated resampling.
    • Covariance analysis for PSA.
    • Expected value of perfect information (EVPI).
  • Deterministic sensitivity analysis (DSA).

Other features:

  • Multiple state membership correction methods (life-table, custom method, etc.).
  • Demographic analysis to compute population-level results.
  • Heterogeneity analysis.
  • Parallel computing support.
  • Features for budget impact analysis.
  • Interface with SAVI and BCEA.

Most of the analyses presented in Decision Modelling for Health Economic Evaluation can be performed with heemod. See the Reproducing Exact Results from DMHEE vignette for an exact reproduction of the analyses from the book.

Learning heemod

To get started read the An Introduction to heemod vignette. Specific analysis examples (mostly inspired from Decision Modelling for Health Economic Evaluation) can be found in the package vignettes.

Devs

Kevin Zarca and Antoine Filipović-Pierucci.

Contributors

Copy Link

Version

Install

install.packages('heemod')

Monthly Downloads

1,092

Version

0.16.0

License

GPL (>= 3)

Maintainer

Kevin Zarca

Last Published

July 18th, 2023

Functions in heemod (0.16.0)

apply_shift

Apply a time shift to a survival distribution
apply_af

Apply an Acceleration Factor
combine_probs

Combine Probabilities
apply_hr

Apply a Hazard Ratio
compute_counts

Compute Count of Individual in Each State per Cycle
check_strategy_index

Check Strategy Index
compute_values

Compute State Values per Cycle
check_names

Check Names
construct_part_surv_tib

construct a survival object from tabular specification
calibrate_model

Calibrate Model Parameters
add_hazards

Add Hazards
create_model_list_from_tabular

Read Models Specified by Files
as_expr_list

Convert Lazy Dots to Expression List
define_state

Define a Markov Model State
clean_factors

Convert Data Frame Factor Variables to Character
cluster

Run heemod on a Cluster
calc_prob_from_surv

Calculate Probability of Event
combine_models

Combine Multiple Models
define_starting_values

Define Starting State Values
discount

Discount a Quantity Over Time. Should be a scalar if time is specified, a vector otherwise
create_options_from_tabular

Create Model Options From a Tabular Input
define_part_surv

Define Partitioned Survival
eval_surv

Evaluate Survival Distributions
define_transition

Define Transition Matrix for Markov Model
check_cycle_inputs

Check Cycle and Time Inputs
check_states

Check Model States for Consistency
define_calibration_fn

Define Calibration Function
filter_blanks

Remove Blank Rows From Table
compute_icer

Compute ICER
create_df_from_tabular

Load Data From a Folder Into an Environment
define_psa

Define Parameters Distribution for Probabilistic Analysis
expand_if_necessary

Expand States and Transition
dispatch_strategy

Dispatch Values According to Strategy
define_strategy

Define a Markov Model
check_matrix

Check Markov Model Transition Matrix
define_state_list

Define Markov Model State List
get_parameter_names

Return parameters names
get_frontier

Return Efficiency Frontier
define_dsa

Define a Sensitivity Analysis
expand_state

Expand Time-Dependant States into Tunnel States
define_correlation

Define a Correlation Structure for Probabilistic Uncertainty Analysis
export_savi

Export PSA Results for SAVI
define_survival

Define a Survival Distribution
create_matrix_from_tabular

Create a Transition Matrix From Tabular Input
define_surv_table

Define a survival distribution based on explicit survival probabilities
create_model_from_tabular

Create a heemod Model From Tabular Files Info
run_model_tabular

Run Analyses From Files
create_demographic_table

Read a Demographic Table
get_mat_total

Get count number
load_surv_models

Load a set of survival fits
compute_surv

Evaluate Survival Distributions
read_file

Read the accepted file formats for tabular input
run_model

Run Markov Model
get_counts.updated_model

Get State Membership Counts
look_up

Look Up Values in a Data Frame
eval_resample

Evaluate Resampling Definition
eval_strategy_newdata

Iteratively Evaluate a Markov Model With New Parameter Values
define_init

Define Initial Counts
create_parameters_from_tabular

Create a Parameter Definition From Tabular Input
define_inflow

Define Inflow for a BIA
eval_parameters

Evaluate Markov model parameters
plot.surv_obj

Plot general survival models
get_transition

Get Markov Model Transition Matrix
create_states_from_tabular

Create State Definitions From Tabular Input
distributions

Probability Density Functions for Probabilistic Uncertainty Analysis
set_covariates

Set Covariates of a Survival Distribution
scale.combined_model

Normalize Cost and Effect
gather_model_info

Gather Information for Running a Model From Tabular Data
define_parameters

Define Markov Model Parameters
run_psa

Run Probabilistic Uncertainty Analysis
eval_models_from_tabular

Evaluate Models From a Tabular Source
join

Project Beyond a Survival Distribution with Another
safe_conversion

Safely Convert From Characters to Numbers
make_names

Make Syntactically Valid Names
heemod

Markov Models for Health Economic Evaluations
eval_strategy

Evaluate Strategy
define_spline_survival

Define a Restricted Cubic Spline Survival Distribution
run_bcea

Use the BCEA package
extract_stratum

Extract Product-Limit Table for a Stratum
discount_hack

Hack to Work Around a Discounting Issue
dispatch_strategy_hack

Hack to Automate Use of Strategy Name
interpolate

Interpolate Quosures
mix

Mix Two or More Survival Distributions
get_counts_diff

Get count matrix and difference between two cycles
eval_state_list

Evaluate Markov Model States
get_state_value_names

Return Names of State Values
is_csv

Check File Type
get_matrix_order

Return Markov Model Transition Matrix Order
summary.run_model

Summarise Markov Model Results
get_values.updated_model

Get Strategy Values
extract_params

Extract Evaluated Parameters
save_outputs

Save Model Outputs
modify

Modify Object
part_survs_from_surv_inputs

Convert saved fits to partitioned survival objects
eval_transition

Evaluate Markov Model Transition Matrix
extract_strata

Extract Product-Limit Tables
get_state_names

Get State Names
plur

Returns "s" if x > 1
get_state_number

Return Number of State
reindent_transition

Reindent Transition Matrix
reexports

Objects exported from other packages
list_all_same

Check if All the Elements of a List Are the Same
plot.dsa

Plot Sensitivity Analysis
project_fn

Project Beyond a Survival Distribution with Another (pairwise)
probability

Convenience Functions to Compute Probabilities
is.wholenumber

Check Wholenumbers
rescale_discount_rate

Rescale Discount Rate
update_model

Run Model on New Data
summary.surv_shift

Summarize surv_shift objects
insert

Insert Elements in Vector
parse_multi_spec

Specify Inputs for Multiple Models From a Single File
run_dsa

Run Sensitivity Analysis
wtd_summary

Weighted Summary
plot.psa

Plot Results of Probabilistic Analysis
plot.run_model

Plot Results of a Markov Model
who_mortality

Use WHO Mortality Rate
calc_surv_from_prob

Calculate Probability of Survival
apply_or

Apply an Odds Ratio
acceptability_curve

Acceptability Curve from Probabilistic Analysis