prob_tox_quantile: Quantile of the toxicity rate at each dose.

View source: R/interface.R

prob_tox_quantile.boin_comb_selectorR Documentation

Quantile of the toxicity rate at each dose.

Description

Get the estimated quantile of the toxicity rate at each dose under investigation. This is a set of modelled statistics. The underlying models estimate toxicity probabilities in different ways. If no model-based estimate of the median is available, this function will return a vector of NAs.

Usage

## S3 method for class 'boin_comb_selector'
prob_tox_quantile(x, p, iso = TRUE, ...)

prob_tox_quantile(x, p, ...)

Arguments

x

Object of class selector

p

quantile probability, decimal value between 0 and 1

iso

TRUE to use isotonic regression on the posterior quantiles; FALSE to return just the posterior quantiles, which may not be monotonically increasing by dose.

...

arguments passed to other methods

Value

a numerical vector

Examples

# CRM example
skeleton <- c(0.05, 0.1, 0.25, 0.4, 0.6)
target <- 0.25
outcomes <- '1NNN 2NTN'
fit <- get_dfcrm(skeleton = skeleton, target = target) %>% fit(outcomes)
fit %>% prob_tox_quantile(p = 0.9)

brockk/dosefinding documentation built on April 5, 2025, 5:53 p.m.