View source: R/helpers_rules.R
h_next_best_eligible_doses | R Documentation |
Helper function that gets the eligible doses from the dose grid.
The eligible doses are the doses which do not exceed a given
doselimit
. For placebo design, if safety allows (i.e. if there is at least
one non-placebo dose which does not exceed the dose limit), the placebo dose
it then excluded from the eligible doses.
h_next_best_eligible_doses(dose_grid, doselimit, placebo, levels = FALSE)
dose_grid |
( |
doselimit |
( |
placebo |
( |
levels |
( |
A numeric vector with eligible doses or eligible dose levels if levels
flag is TRUE
.
dose_grid <- c(0.001, seq(25, 200, 25))
h_next_best_eligible_doses(dose_grid, 79, TRUE)
h_next_best_eligible_doses(dose_grid, 24, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.