prob_tox_exceeds: Calculate the probability that the rate of toxicity exceeds...

View source: R/prob_tox_exceeds.R

prob_tox_exceedsR Documentation

Calculate the probability that the rate of toxicity exceeds some threshold

Description

Calculate the probability that the rate of toxicity exceeds some threshold

Calculate the probability that the rate of toxicity exceeds some threshold

Usage

prob_tox_exceeds(x, ...)

## S3 method for class 'dose_finding_fit'
prob_tox_exceeds(x, threshold, ...)

Arguments

x

an R object of class "dose_finding_fit"

...

arguments passed to other methods

threshold

numeric, threshold value.

Value

numerical vector of probabilities

numerical vector of probabilities

Examples

## Not run: 
# CRM example
target <- 0.2
fit <- stan_crm('1N 2N 3T', skeleton = c(0.1, 0.2, 0.35, 0.6),
                 target = target, model = 'empiric', beta_sd = sqrt(1.34),
                 seed = 123)
prob_tox_exceeds(fit, target)

## End(Not run)

trialr documentation built on April 1, 2023, 12:03 a.m.