IncrementsRelative-class: Increments control based on relative differences in intervals

IncrementsRelative-classR Documentation

Increments control based on relative differences in intervals

Description

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.

Slots

intervals

a vector with the left bounds of the relevant intervals

increments

a vector of the same length with the maximum allowable relative increments in the intervals

Examples


# 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))


crmPack documentation built on June 26, 2024, 5:07 p.m.