Learn R Programming

crmPack (version 2.0.0)

or-Stopping-Stopping: Combine Two Stopping Rules with OR

Description

[Stable]

The method combining two atomic stopping rules.

Usage

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

Value

The StoppingAny object.

Arguments

e1

(Stopping)
first stopping rule object.

e2

(Stopping)
second stopping rule object.

Examples

Run this code
## Example of combining two atomic stopping rules with an OR ('|') operator

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

myStopping <- myStopping1 | myStopping2

Run the code above in your browser using DataLab