Fit a dose-finding model to some outcomes.
fit(selector_factory, outcomes, ...)
Object of type selector_factory
.
Outcome string. See parse_phase1_outcomes
.
Extra args are passed onwards.
Object of generic type selector
.
skeleton <- c(0.05, 0.1, 0.25, 0.4, 0.6)
target <- 0.25
model <- get_dfcrm(skeleton = skeleton, target = target)
fit <- model %>% fit('1NNN 2NTN')
fit %>% recommended_dose() # Etc
#> [1] 2