dont_skip_doses {escalation} | R Documentation |
Prevent skipping of doses.
Description
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.
Usage
dont_skip_doses(
parent_selector_factory,
when_escalating = TRUE,
when_deescalating = FALSE
)
Arguments
parent_selector_factory |
Object of type |
when_escalating |
TRUE to prevent skipping when attempting to escalate. |
when_deescalating |
TRUE to prevent skipping when attempting to deescalate. |
Value
an object of type selector_factory
that can fit a
dose-finding model to outcomes.
Examples
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()
# But fit2 will:
fit2 %>% recommended_dose()
# 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()
# But fit2 will:
fit2 %>% recommended_dose()
[Package escalation version 0.1.10 Index]