This repository contains the main code to reproduce the results of the paper “Treatment-control comparisons in platform trials including non-concurrent controls’’.
This repository is structured as follows:
Root directory:
-
File simscript.R: This script contains the code to reproduce the simulations shown in the main paper and supplementary material (Sections A, B.2, and C). After running the script, the results for the individual scenarios are saved in the folder results.
-
File Figures.Rmd: This file contains the code to create all figures presented in the main paper and supplementary material (Sections A, B.2, and C). The figures are saved in the folder figures.
Folder supp_material_B.1:
-
File simscript_supp_mat_B.1.R: This script contains the code to reproduce the simulations shown in the supplementary material (Section B.1). After running the script, the results for the individual scenarios are saved in the subfolder results.
-
File plots_supp_mat_B.1.Rmd: This file contains the code to create all figures presented in the supplementary material (Section B.1). The figures are saved in the subfolder figures.
Folder Commensurate_prior:
This folder contains the code for additional simulations using the commensurate prior approach.
-
File simscript_comm_prior.R: This file contains the code to reproduce the simulations using commensurate prior approach. After running the script, the results for the individual scenarios are saved in the subfolder results.
-
Subfolder functions: This folder contains the analysis function for commensurate prior (
commprior_cont.R), and the wrapper function for running simulations (sim_function_par.R).
The version of the NCC R-package
that was used for the simulation study is included in this repository.
This version is labeled as Release 1.4 on GitHub and can be installed by running the following code:
# install.packages("devtools")
devtools::install_github("pavlakrotka/NCC@v1.4", force = TRUE, build_vignettes = TRUE)Please note that prior to installing the NCC package, the
JAGS (>=3.4.1) library needs to be
installed on your computer, as it is an external dependency of the
package. For more details, see
https://pavlakrotka.github.io/NCC/articles/installation.html.
The required working directory for each code file is the folder where this file is located.
Funding
EU-PEARL (EU Patient-cEntric clinicAl tRial pLatforms) project has received funding from the Innovative Medicines Initiative (IMI) 2 Joint Undertaking (JU) under grant agreement No 853966. This Joint Undertaking receives support from the European Union’s Horizon 2020 research and innovation programme and EFPIA and Children’s Tumor Foundation, Global Alliance for TB Drug Development non-profit organisation, Spring works Therapeutics Inc. This publication reflects the authors’ views. Neither IMI nor the European Union, EFPIA, or any Associated Partners are responsible for any use that may be made of the information contained herein.
This research was funded in whole or in part by the Austrian Science Fund (FWF) [ESP 442 ESPRIT-Programm].