GetDesire: Returns the desireability value of a dose.

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

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

Usage

1
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.

Examples

1
2
3
4
5
PE=.6
PT=.2
##Contour values
Contour=c(.35,.7,.8,.6)
GetDesire(PE,PT,Contour)

UtilityFrailtyPH12 documentation built on May 2, 2019, 6:03 a.m.