# NOT RUN {
DLT <- 0
dose <- 20
step_zero <- ewoc_d1classical(DLT ~ dose, type = 'discrete',
theta = 0.33, alpha = 0.25,
min_dose = 0, max_dose = 100,
dose_set = seq(0, 100, 20),
rho_prior = matrix(1, ncol = 2, nrow = 1),
mtd_prior = matrix(1, ncol = 2, nrow = 1),
rounding = "nearest")
stop_rule_sim(step_zero)
response_sim <- response_d1classical(rho = 0.05, mtd = 20, theta = 0.33,
min_dose = 10, max_dose = 50)
sim <- ewoc_simulation(step_zero = step_zero,
n_sim = 1, sample_size = 2,
alpha_strategy = "increasing",
response_sim = response_sim,
stop_rule_sim = stop_rule_sim,
ncores = 2)
stop_rule(sim$dlt_sim)
# }
# NOT RUN {
# }
# NOT RUN {
DLT <- 0
dose <- 20
step_zero <- ewoc_d1classical(DLT ~ dose, type = 'discrete',
theta = 0.33, alpha = 0.25,
min_dose = 0, max_dose = 100,
dose_set = seq(0, 100, 20),
rho_prior = matrix(1, ncol = 2, nrow = 1),
mtd_prior = matrix(1, ncol = 2, nrow = 1),
rounding = "nearest")
stop_rule_sim(step_zero)
response_sim <- response_d1classical(rho = 0.05, mtd = 20, theta = 0.33,
min_dose = 10, max_dose = 50)
sim <- ewoc_simulation(step_zero = step_zero,
n_sim = 2, sample_size = 30,
alpha_strategy = "increasing",
response_sim = response_sim,
stop_rule_sim = stop_rule_sim,
ncores = 2)
stop_rule(sim$dlt_sim)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab