Learn R Programming

trialr (version 0.0.7)

efftox_fit-class: Class of model fit by trialr using the EffTox dose-finding design.

Description

Class of model fit by trialr using the EffTox dose-finding design.

Usage

efftox_fit(dose_indices, recommended_dose, prob_eff, prob_tox, prob_acc_eff,
  prob_acc_tox, utility, post_utility, acceptable, dat, fit)

Arguments

dose_indices

A vector of integers representing the dose-levels under consideration.

recommended_dose

An integer representing the dose-level recommended for the next patient or cohort; or NA if stopping is recommended.

prob_eff

The posterior mean probabilities of efficacy at doses 1:n; a vector of numbers between 0 and 1.

prob_tox

The posterior mean probabilities of toxicity at doses 1:n; a vector of numbers between 0 and 1.

prob_acc_eff

The posterior mean probabilities that efficacy at the doses is acceptable, i.e. that it exceeds the minimum acceptable efficacy threshold; a vector of numbers between 0 and 1.

prob_acc_tox

The posterior mean probabilities that toxicity at the doses is acceptable, i.e. that it is less than the maximum toxicity threshold; a vector of numbers between 0 and 1.

utility

The utilities of doses 1:n, calculated by plugging the posterior mean probabilities of efficacy and toxicity into the utility formula, as advocated by Thall & Cook. Contrast to post_utility; a vector of numbers.

post_utility

The posterior mean utilities of doses 1:n, calculated from the posterior distributions of the utilities. This is in contrast to utility, which uses plug-in posterior means of efficacy and toxicity, as advocated by Thall & Cook; a vector of numbers.

acceptable

A vector of logical values to indicate whether doses 1:n are acceptable, according to the rules for acceptable efficacy & toxicity, and rules on not skipping untested doses.

dat

Object efftox_params containing data passed to sampling.

fit

An object of class stanfit, containing the posterior samples.

Details

See methods(class = "efftox_fit") for an overview of available methods.

See Also

stan_efftox stan_efftox_demo efftox_process