Microsimulation Modeling for Health Decision Sciences Using R: A Tutorial

Med Decis Making. 2018 Apr;38(3):400-422. doi: 10.1177/0272989X18754513.

Abstract

Microsimulation models are becoming increasingly common in the field of decision modeling for health. Because microsimulation models are computationally more demanding than traditional Markov cohort models, the use of computer programming languages in their development has become more common. R is a programming language that has gained recognition within the field of decision modeling. It has the capacity to perform microsimulation models more efficiently than software commonly used for decision modeling, incorporate statistical analyses within decision models, and produce more transparent models and reproducible results. However, no clear guidance for the implementation of microsimulation models in R exists. In this tutorial, we provide a step-by-step guide to build microsimulation models in R and illustrate the use of this guide on a simple, but transferable, hypothetical decision problem. We guide the reader through the necessary steps and provide generic R code that is flexible and can be adapted for other models. We also show how this code can be extended to address more complex model structures and provide an efficient microsimulation approach that relies on vectorization solutions.

Keywords: Markov model; R project; decision-analytic modeling; microsimulation; open source software.

Publication types

  • Comparative Study
  • Research Support, N.I.H., Extramural
  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Clinical Decision-Making / methods*
  • Cohort Studies
  • Computer Simulation
  • Cost-Benefit Analysis / methods*
  • Decision Support Systems, Clinical*
  • Humans
  • Markov Chains
  • Programming Languages*
  • Quality of Life
  • Quality-Adjusted Life Years
  • Severity of Illness Index
  • Software