Learn R Programming

crmPack (version 1.0.6)

IncrementsRelative-class: 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.

Arguments

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

Run this code

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

Run the code above in your browser using DataLab