Learn R Programming

crmPack (version 1.0.6)

or-Stopping-StoppingAny: The method combining a stopping list and an atomic

Description

The method combining a stopping list and an atomic

Usage

# S4 method for StoppingAny,Stopping
|(e1, e2)

Value

The modified StoppingAny object

Arguments

e1

StoppingAny object

e2

Stopping object

Examples

Run this code

## Example of combining a list of stopping rules with an atomic stopping rule
## with an OR ('|') operator

myStopping1 <- StoppingMinCohorts(nCohorts=3)
myStopping2 <- StoppingTargetProb(target=c(0.2, 0.35),
                                  prob=0.5)

myStopping3 <- StoppingMinPatients(nPatients=20)

myStopping <- (myStopping1 & myStopping2 ) | myStopping3 




Run the code above in your browser using DataLab