Learn R Programming

escalation (version 0.2.3)

recommended_dose: Recommended dose for next patient or cohort.

Description

Get the dose recommended for the next patient or cohort in a dose-finding trial.

Usage

recommended_dose(x, ...)

# S3 method for simulations recommended_dose(x, dose_string = FALSE, ...)

Value

integer

Arguments

x

Object of type selector.

...

Extra args are passed onwards.

dose_string

TRUE to return vector of character dose-strings; FALSE (the default) to get a numerical vector of recommended dose-indices in monotherapy studies, or a matrix of recommended dose-indices in combination studies with the different treatments in columns and simulated outcomes in rows.

Examples

Run this code
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()

Run the code above in your browser using DataLab