Note that intervals is to be read as follows. If for example,
we want to specify three intervals: First 0 to less than 50, second at least
50 up to less than 100 mg, and third at least 100 mg, then we specify
intervals to be c(0, 50, 100). That means, the right
bound of the intervals are exclusive to the interval, and the last interval
goes from the last value until infinity.
intervalsa vector with the left bounds of the relevant intervals
incrementsa vector of the same length with the maximum allowable
relative increments in the intervals
1 2 3 4 5 6 | # As example, here is the rule for:
# maximum doubling the dose if the current dose is <20
# OR only maximum increasing the dose by 1.33 if the current dose is >=20
myIncrements <- IncrementsRelative(intervals=c(0, 20),
increments=c(1, 0.33))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.