ploss | R Documentation |
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.
ploss(value = 0.18, target = 0.2, tolerance = 0.05) #calculate loss for 0.18 when equivalence interval is [0.15,0.25]
value |
Estimated probability of futility/toxicity |
target |
Target chance of futility/toxicity |
tolerance |
Half-length of the equivalence interval |
Calculated numeric loss for given value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.