View source: R/FBCRMSimTrial.R
FBCRMSimTrial | R Documentation |
Provides simulation results using FBCRM
FBCRMSimTrial(max_samp, Cohort, ptrue, mu, p_rho, sigma, mtd, p_u, B, M)
max_samp |
Total number of patients recruited/will be recruited in the trial. |
Cohort |
Number of patients within each cohort. |
ptrue |
True toxicity probability vector. |
mu |
Prior expected toxicity probability at each dose. |
p_rho |
Prior probability that two dose-toxicity probabilities will not cluster together. |
sigma |
Prior standard deviation for the parameter alpha. |
mtd |
Maximum Tolerated dose toxicity probability (pre defined). |
p_u |
Cut-off toxicity probability for first dose. |
B |
Number of Iterations to run for MCMC. |
M |
Number of simulations to run. |
A list containing (1) Design parameters and prior hyperparameters used for simulating the trials and (2) a summary of the trial simulation results including the percent of times each dose was selected and the average number of toxicities seen in the trial.
max_samp=15 Cohort=3 ptrue=c(0.01,0.05,0.15,0.3,0.45,0.5,0.6,0.8) mu=seq(0.1,0.8,0.1) p_rho=0.9 sigma = 2 mtd = 0.3 p_u=0.9 B=200 ##Number of iterations, Change to 2k M=10 ##Number of simulations, Change to larger Z=FBCRMSimTrial(max_samp,Cohort,ptrue,mu,p_rho,sigma,mtd,p_u,B,M) Z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.