Introduction-to-R-for-HTA 2024: getting to grips with R for basic survival analysis and health economic analysis
This repository stores the code, presentations, and material used in the R-HTA in LMICs introductory 2024 tutorial.
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 basic survival analysis in R.
The R
folder includes the code script I2r_Aug24
used to help you get to grips with R. For those interested, there is a secondary extrapolation.R
script which provides a brief example of survival extrapolation in preparation for the intermediate workshop. The data
folder stores any relevant raw data used during the tutorial.
The analysis
folder stores the primary code script used during the tutorial, illustrating how to generate Kaplan-Meier and Cox models.
- Install
survival
,survminer
,broom
, andggplot2
from CRAN, which are R packages used for survival analysis. Then, installdevtools
to install thedarthtools
package, which is an R package from DARTH's GitHub. See below:
# For the survival analysis, install the following packages from CRAN
install.packages("survival")
install.packages("survminer")
install.packages("broom")
install.packages("ggplot2")
- then install
darthtools
usingdevtools
# Install devtools from CRAN
install.packages("devtools")
# Install development DARTH tools package from GitHub
devtools::install_github("DARTH-git/darthtools")
For syntax consistency, we follow the R syntax framework developed by the DARTH group: - Alarid-Escudero F, Krijkamp EM, Pechlivanoglou P, Jalal HJ, Kao SYZ, Yang A, Enns EA. A Need for Change! A Coding Framework for Improving Transparency in Decision Modeling. PharmacoEconomics, 2190;37(11):1329--1339. https://doi.org/10.1007/s40273-019-00837-x
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 as new events go live!