/Advanced-Tutorial-2022

A repository for the Advanced Programming Tutorial that teaches you how to develop an interactive model using Shiny

Primary LanguageRGNU General Public License v3.0GPL-3.0

Advanced R Programming Tutorial 2022: Make your health economic model Shiny!


This repository stores the code, presentations, and material used in the R-HTA in LMICs Advanced 2022 tutorial (held in January 2023). The following sections provide a breakdown of the primary documents and guidance on how to use them for your own personal training. The tutorial is based on several open-source frameworks for modelling Cost-Effectiveness Analysis models and Shiny apps in R for HTA (see the citations section), developed by DARTH group and Dark Peak Analytics.

Navigation

The R folder includes a standalone R script code that replicates an original model presented in chapter two of 'Decision Modelling for Health Economic Evaluation by Briggs A., et al.

The Excel folder includes the original model's solution template, developed in Excel, provided by Oxford's Health Economics Research Centre (HERC).

The shiny folder includes the code used to develop and run the Shiny application version of the cost-effectiveness model.

Preliminaries

# Install release version from CRAN
install.packages(c("dampack", "shiny"))

# For dampack specifically, you can also install the development version of the
# package from GitHub
# devtools::install_github("DARTH-git/dampack")
# Install release version from CRAN
install.packages("devtools")

# Or install development version from GitHub
# devtools::install_github("r-lib/devtools")
  • Install darthtools using devtools
# Install development version from GitHub
devtools::install_github("DARTH-git/darthtools")

For syntax consistency, we follow the coding syntax framework developed by the DARTH group:

Lastly, we strongly recommended familiarising yourself with Shiny before undertaking the tutorial:

Citations

This tutorial is based on several open-source R coding frameworks for HTA:

Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM, Pechlivanoglou P, Jalal H. A Tutorial on Time-Dependent Cohort State-Transition Models in R using a Cost-Effectiveness Analysis Example (https://arxiv.org/abs/2108.13552). arXiv:2108.13552v2. 2022:1-37.

Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM, Pechlivanoglou P, Jalal H (2022). R Code for A Tutorial on Time-Dependent Cohort State-Transition Models in R using a Cost-Effectiveness Analysis Example (Version v0.2.0). Zenodo. 10.5281/zenodo.6620902. Last accessed 7 June 2022.

Smith R and Schneider P. Making health economic models Shiny: A tutorial. Wellcome Open Res 2020, 5:69.

Additional Information

Visit our webpage and follow the links to our social media to keep up-to-date with our latest tutorials. Alternatively, follow us on EventBrite to receive notifications for when new events go live!