ploss: Calculate Loss (1-Utility)

View source: R/ploss.R

plossR Documentation

Calculate Loss (1-Utility)

Description

Calculates loss for a given value with target and tolerance levels. Can be used for toxicity or futility. Loss = 0 if value below target - tolerance, 1 if above target + tolerance, and linear from 0 to 1 between.

Usage

ploss(value = 0.18, target = 0.2, tolerance = 0.05) #calculate loss for 0.18 when equivalence interval is [0.15,0.25]

Arguments

value

Estimated probability of futility/toxicity

target

Target chance of futility/toxicity

tolerance

Half-length of the equivalence interval

Value

Calculated numeric loss for given value


jiyingz/clinicalMPI documentation built on Jan. 19, 2024, 5:58 a.m.