Related Experiment Video
Updated: Dec 9, 2025

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
Making health economic models Shiny: A tutorial
Robert Smith1, Paul Schneider1
1School of Health and Related Research, University of Sheffield, Regents Court, Sheffield, S1 4DA, UK.
Abstract:
Health economic evaluation models have traditionally been built in Microsoft Excel, but more sophisticated tools are increasingly being used as model complexity and computational requirements increase. Of all the programming languages, R is most popular amongst health economists because it has a plethora of user created packages and is highly flexible. However, even with an integrated development environment such as R Studio, R lacks a simple point and click user interface and therefore requires some programming ability. This might make the switch from Microsoft Excel to R seem daunting, and it might make it difficult to directly communicate results with decisions makers and other stakeholders. The R package Shiny has the potential to resolve this limitation. It allows programmers to embed health economic models developed in R into interactive web browser based user interfaces. Users can specify their own assumptions about model parameters and run different scenario analyses, which, in the case of regular a Markov model, can be computed within seconds. This paper provides a tutorial on how to wrap a health economic model built in R into a Shiny application. We use a four-state Markov model developed by the Decision Analysis in R for Technologies in Health (DARTH) group as a case-study to demonstrate main principles and basic functionality. A more extensive tutorial, all code, and data are provided in a GitHub repository.
More Related Videos
Related Concept Videos
Pharmacokinetic Models: Overview
There are three primary types of models: empirical, compartment, and physiological. Empirical models, with minimal...
Models of Health Promotion and Illness Prevention II
The agent-host-environment model states that disease results...
Models of Health Promotion and Illness Prevention I
The health belief model (HBM) attempts to predict health-related behavior in specific belief patterns. According to the HBM, a person's...
Overview of Biostatistics in Health Sciences
Statistical Methods for Analyzing Epidemiological Data
Econometric Views (EViews)

