Description Usage Arguments Value Examples
View source: R/calculate_dose_modification.R
This function takes an existing scale for dose modifications (as TRIAL.dose_scale) and, given an input value and a direction (+ for escalation and - for descalation), returns the modified dose.
1 2 3 4 5 | calculate_dose_modification(
value,
direction = "+",
dose_scale = TRIAL.dose_scale
)
|
value |
The current value. |
direction |
The direction (+/-) to move in on the dose scale (default="+") |
dose_scale |
The existing dose escalation/descalation scale for this trial. |
The new dose.
1 2 3 | this.dose_scale = c( 1,2,4,8,16 )
calculate_dose_modification( 2 , dose_scale = this.dose_scale )
calculate_dose_modification( 16, "-", dose_scale = this.dose_scale )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.