This method optionally prevents dose selectors from skipping doses when escalating and / or deescalating. The default is that skipping when escalating is prevented but skipping when deescalating is permitted, but both of these behaviours can be altered.
dont_skip_doses(
parent_selector_factory,
when_escalating = TRUE,
when_deescalating = FALSE
)
Object of type selector_factory
.
TRUE to prevent skipping when attempting to escalate.
TRUE to prevent skipping when attempting to deescalate.
an object of type selector_factory
that can fit a
dose-finding model to outcomes.
skeleton <- c(0.05, 0.1, 0.25, 0.4, 0.6)
target <- 0.25
model1 <- get_dfcrm(skeleton = skeleton, target = target) %>%
dont_skip_doses()
fit1 <- model1 %>% fit('1NNN')
model2 <- get_dfcrm(skeleton = skeleton, target = target)
fit2 <- model2 %>% fit('1NNN')
# fit1 will not skip doses
fit1 %>% recommended_dose()
#> [1] 2
# But fit2 will:
fit2 %>% recommended_dose()
#> [1] 4
# Similar demonstration for de-escalation
model1 <- get_dfcrm(skeleton = skeleton, target = target) %>%
dont_skip_doses(when_deescalating = TRUE)
fit1 <- model1 %>% fit('1NNN 2N 3TTT')
model2 <- get_dfcrm(skeleton = skeleton, target = target)
fit2 <- model2 %>% fit('1NNN 2N 3TTT')
# fit1 will not skip doses
fit1 %>% recommended_dose()
#> [1] 2
# But fit2 will:
fit2 %>% recommended_dose()
#> [1] 1