Learn R Programming

crmPack (version 1.0.6)

StoppingAny-class: Stop based on fullfillment of any stopping rule

Description

This class can be used to combine multiple stopping rules with an OR operator.

Arguments

Slots

stopList

list of stopping rules

Details

stopList contains all stopping rules, which are again objects of class Stopping. Any of these rules must be fulfilled in order that the result of this rule is to stop.

Examples

Run this code

# Define some stopping rules
myStopping1 <- StoppingMinCohorts(nCohorts=3)
myStopping2 <- StoppingTargetProb(target=c(0.2, 0.35),
                                  prob=0.5)
myStopping3 <- StoppingMinPatients(nPatients=20)

# Create a list of stopping rules (of class 'StoppingAny') which will then be
# summarized with the 'any' function, meaning that the study would be stopped if
# 'any' of the single stopping rules is TRUE.
mystopping <- StoppingAny(stopList=c(myStopping1,myStopping2,myStopping3))


Run the code above in your browser using DataLab