Code accompanying the paper on Robust Bayesian Sequential Borrowing (RBSB). The repo contains the simulation study and the case study analysis.
Paper: [TODO: add link once published]
R/funcs_help.R— helper functions for data generation, scenario creation, and result extraction.R/funcs_borrowing.R— core functions for each borrowing method (Stand Alone, Historical Pooling, Adjacent Borrowing, RBSB).R/simulations_for_paper.R— runs all simulation scenarios and saves results todata/.data/— simulation results as CSV files.
install.packages(c("MASS", "RBesT", "dplyr", "tidyr", "parallel", "xtable"))source("R/simulations_for_paper.R")Results are saved to data/ as CSV files.