Learn R Programming

crmPack (version 1.0.6)

maxSize: "MAX" combination of cohort size rules

Description

This function combines cohort size rules by taking the maximum of all sizes.

Usage

maxSize(...)

# S4 method for CohortSize maxSize(...)

Value

the combination as an object of class CohortSizeMax

Arguments

...

Objects of class CohortSize

Functions

  • maxSize(CohortSize): The method combining cohort size rules by taking maximum

See Also

minSize

Examples

Run this code

# Here is the rule for: 
#   having cohort of size 1 for doses <30
#   and having cohort of size 3 for doses >=30
mySize1 <- CohortSizeRange(intervals = c(0, 30),
                           cohortSize = c(1, 3))

# Here is the rule for: 
#   having cohort of size 1 until no DLT were observed
#   and having cohort of size 3 as soon as 1 DLT is observed
mySize2 <- CohortSizeDLT(DLTintervals=c(0, 1),
                         cohortSize=c(1, 3))

# This is combining the two rules above by taking the maximum of the sample sizes of
# the single rules
mySize <- maxSize(mySize1, mySize2)

Run the code above in your browser using DataLab