Related Experiment Video
Updated: Sep 13, 2025

In Silico Clinical Trials for Cardiovascular Disease
Published on: May 27, 2022
Microsimulation Modeling for Health Decision Sciences Using C++: A Tutorial
Aku-Ville Lehtimäki1, Janne Martikainen2
1School of Pharmacy, Faculty of Health Sciences, Kuopio Campus, University of Eastern Finland, 70211, Kuopio, Finland. aku-ville.lehtimaki@uef.fi.
None:
Microsimulation models have become 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. C++ is a programming language that has gained widespread recognition in computationally intensive fields, including systems modeling and performance-critical applications. It offers powerful tools for building high-performance microsimulation models, outpacing many traditional modeling software solutions, such as native R, in terms of speed and control over memory management. However, there is limited accessible guidance for implementing microsimulation models in C++. This tutorial offers a step-by-step approach to constructing microsimulation models in C++ and demonstrates its application through simplified but adaptable example decision models. We walk the reader through essential steps and provide generic C++ code that is flexible and suitable for adapting to a range of models. Finally, we present the standalone C++ models and their Rcpp counterparts run within R, and compare their performance to equivalent R implementations in terms of speed and memory efficiency.
More Related Videos
10:23Author Spotlight: Computing the Effects of a Local Radiofrequency Hyperthermia Intervention on Tumor Biomechanics
Published on: December 1, 2023
15:04Modeling and Simulations of Olfactory Drug Delivery with Passive and Active Controls of Nasally Inhaled Pharmaceutical Aerosols
Published on: May 20, 2016
Related Concept Videos
Mechanistic Models: Compartment Models in Algorithms for Numerical Problem Solving
In individual population analyses, different algorithms are employed, such as Cauchy's method, which uses a...
Mechanistic Models: Compartment Models in Individual and Population Analysis
Statistical Software for Data Analysis and Clinical Trials
Mechanistic Models: Overview of Compartment Models
Analysis of Population Pharmacokinetic Data
Overview of Biostatistics in Health Sciences