R code for implementing the COCA design.
R version 4.3.1 was used for the simulations. Bayesian MCMC sampling were done by rjags (Download JAGS from https://sourceforge.net/projects/mcmc-jags/).
- scenarios.R: simulation scenarios
- calibration.R: get calibrated stage 2 sample size and design cutoffs. More detail is commented out at the beginning of each function.
- run_COCA.R: run COCA design and get the summarized results. More detail is commented out at the beginning of each function. An example to run the code is provided at the end of each file.
Chi, X., Lin, R.*, Yuan, Y.* (2024+). COCA: A Randomized Bayesian Design Integrating Dose Optimization and Component Contribution Assessment for Combination Therapies. Under Revision in Biometrics.