Recently Published
Decision Tree Modelling in R for Migraine Treatment: Cost-Effectiveness and Cost-Utility Analysis
This tutorial demonstrates how to build and evaluate a decision tree model in R using the rdecision package, based on a classic pharmacoeconomic study of migraine treatment.
The example compares two treatment strategies—oral sumatriptan and a combined oral dose of caffeine/ergotamine—within a clinically realistic framework that captures key patient pathways, including pain relief, recurrence, emergency care, and hospitalization.
The tutorial illustrates how to:
Construct a decision tree structure programmatically in R
Assign probabilities, costs, and outcomes to model transitions
Perform cost-effectiveness analysis (CEA) using attacks averted as the outcome
Perform cost-utility analysis (CUA) using quality-adjusted life years (QALYs)
Calculate incremental cost-effectiveness ratios (ICERs) for decision making
Conduct subgroup analysis based on migraine severity
Using a one-day time horizon, the model estimates expected costs and outcomes for each treatment strategy and evaluates their economic value. The tutorial provides a reproducible workflow that reflects real-world approaches used in pharmacoeconomics and health technology assessment (HTA).
This example is particularly relevant for students and researchers interested in health economic modelling, pharmaco-economics, and applied decision analysis in R.
Keywords: decision tree modelling, migraine, cost-effectiveness analysis, cost-utility analysis, QALY, ICER, pharmacoeconomics, R, rdecision
Implementing a Cost-Utility Decision Tree in R Using the rdecision Package
Decision tree models are widely used in health economic evaluation to compare alternative healthcare interventions under uncertainty. These models are particularly useful for performing cost-effectiveness analysis (CEA) and cost-utility analysis (CUA) where outcomes are measured in quality-adjusted life years (QALYs).
This tutorial demonstrates how to build a reproducible decision tree model in R using the rdecision package. The example illustrates a simplified pharmacoeconomic comparison between low molecular weight heparin (LMWH) and conventional treatment for patients undergoing hip replacement surgery.
The tutorial walks through the process of defining decision nodes, chance nodes, and terminal nodes, assigning probabilities and costs to model pathways, and attaching health utilities to terminal outcomes. The model is evaluated to estimate expected costs and QALYs for each intervention and to calculate the incremental cost-effectiveness ratio (ICER).
This example provides a step-by-step introduction to decision tree modelling in R, making it useful for students and researchers interested in Pharmacoeconomics, health technology assessment (HTA), and health data science.
Keywords
Decision tree modelling, cost-utility analysis, cost-effectiveness analysis, QALY, ICER, pharmacoeconomics, health technology assessment, R programming, health economic modelling, reproducible research.
Decision Tree Model with `rdecision`
Decision trees can be created intuitively in R using the `rdecision` package. The creation follows a logic that is easy to follow. The yield is a visual tree output, in addition to the expected costs and benefits for each alternative required for ICER calculation.