Generating a binary response function based on the EWOC extended model
response_d1extended(rho, min_dose, max_dose)
rho
: a numerical vector indicating the true value of the parameters rho_0 and rho_1.min_dose
: a numerical value defining the lower bound of the support of the MTD.max_dose
: a numerical value defining the upper bound of the support of the MTD.A function with dose as an input and a Binomial variable based on the parameters as an output.
response_sim <- response_d1extended(rho = c(0.05, 0.5), min_dose = 10, max_dose = 50) response_sim(20)