Learn R Programming

escalation (version 0.2.3)

doses_given.boin_comb_selector: Doses given to patients.

Description

Get a vector of the dose-levels that have been administered to patients.

Usage

# S3 method for boin_comb_selector
doses_given(x, dose_string = FALSE, ...)

doses_given(x, ...)

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

Value

an integer vector

Arguments

x

Object of type selector.

dose_string

TRUE to return vector of character dose-strings; FALSE (the default) to get a list of matrices, one for each simulated trial, with the dose-indices of the different treatments in columns and patients in rows.

...

Extra args are passed onwards.

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 %>% doses_given()

Run the code above in your browser using DataLab