50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

Phase12Compare (version 1.5)

GetDesire: Returns the desireability value of a dose.

Description

Takes estimated posterior mean efficacy and toxicity values and returns the posterior mean desireability score for a given tradeoff contour.

Usage

GetDesire(PE, PT, Contour)

Arguments

PE

True or estimated probability of efficacy.

PT

True of estimated probability of toxicity.

Contour

Vector containing 4 entries used to make the desireability function. Contour(1) contains a desired toxicity probability given efficacy, Countour(2) contains a desired efficacy probability given toxicity, and (Contour(3),Contour(4)) is an equally desireable pair of efficacy and toxicity probabilities that are non zero or one.

Value

Computes the real-valued desireability for an estimated (PE, PT) pair and elicited co

Examples

Run this code
# NOT RUN {
PE=.6
PT=.2
##Contour values
Contour=c(.35,.7,.8,.6)
GetDesire(PE,PT,Contour)
# }

Run the code above in your browser using DataLab