p_tox_sc1 = matrix(c(0.15,0.10,0.05,0.30,0.15,0.10,0.45,0.30,0.15,0.50,0.45,
0.30,0.60,0.55,0.45),nrow=3,ncol=5)
p_tox_sc6 = matrix(c(0.15,0.09,0.05,0.30,0.12,0.08,0.45,0.15,0.10,0.50,0.30,
0.13,0.60,0.45,0.15),nrow=3,ncol=5)
prior_a1 = c(0.12, 0.2, 0.3, 0.4, 0.5)
prior_a2 = c(0.2, 0.3, 0.4)
# UNCOMMENT THOSE EXAMPLES
#log_sim1 = logistic_sim(ndose_a1=5, ndose_a2=3, p_tox=p_tox_sc1, target=0.30,
# target_min=0.20, target_max=0.40, prior_tox_a1=prior_a1, prior_tox_a2=prior_a2,
# n_cohort=20, cohort=3, tite=FALSE, nsim=2, c_e=0.85, c_d=0.45, c_stop=0.95,
# n_min=4, seed = 14061991)
#log_sim1
#log_sim2 = logistic_sim(ndose_a1=5, ndose_a2=3, p_tox=p_tox_sc6, target=0.30,
# target_min=0.20, target_max=0.40, prior_tox_a1=prior_a1, prior_tox_a2=prior_a2,
# n_cohort=20, cohort=3, nsim=2)
#log_sim2
# Dummy example, running quickly
useless = logistic_sim(ndose_a1=3, ndose_a2=2,
p_tox=matrix(c(0.15,0.05,0.30,0.15,0.45,0.30),nrow=2), target=0.30,
target_min=0.20, target_max=0.40, prior_tox_a1=c(0.2,0.3,0.4),
prior_tox_a2=c(0.2,0.3), n_cohort=2, cohort=2, nsim=1)Run the code above in your browser using DataLab