powered by
Generating a binary response function based on the EWOC extended model
response_d1extended(rho, min_dose, max_dose)
a numerical vector indicating the true value of the parameters rho_0 and rho_1.
a numerical value defining the lower bound of the support of the MTD.
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.
# NOT RUN { response_sim <- response_d1extended(rho = c(0.05, 0.5), min_dose = 10, max_dose = 50) response_sim(20) # }
Run the code above in your browser using DataLab