Learn R Programming

crmPack (version 1.0.6)

&,Stopping,StoppingAll-method: The method combining an atomic and a stopping list

Description

The method combining an atomic and a stopping list

Usage

# S4 method for Stopping,StoppingAll
&(e1, e2)

Value

The modified StoppingAll object

Arguments

e1

Stopping object

e2

StoppingAll object

Examples

Run this code

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

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

myStopping3 <- StoppingMinPatients(nPatients=20)

myStopping <-  myStopping3 & (myStopping1 | myStopping2 ) 




Run the code above in your browser using DataLab