OC.rule.bin: Operating Characteristics Function (Binary Data)

View source: R/OC.rule.bin.R

OC.rule.binR Documentation

Operating Characteristics Function (Binary Data)


Compute operating characteristics for a stopping rule at a set of toxicity rates. Characteristics calculated include the overall rejection probability, the expected number of patients evaluated, and the expected number of events.


OC.rule.bin(rule, ps, tau = NULL, A = NULL)



A rule.bin object calculated by calc.rule.bin() function


A vector of toxicity probabilities at which the operating characteristics will be computed


Length of observation period


Length of the enrollment period.


If tau and A are specified, the expected number of events includes events among patients who are still pending evaluation at the time of early stopping, computed under an assumption of a random uniform accrual distribution. Otherwise, only events that occurred prior to stopping are included, as the number of events occurring in pending patients depends on tau and A.


A matrix with columns containing the toxicity probabilities ps, the corresponding rejection probabilities, and the corresponding expected number of events. If tau and A are also specified, the expected numbers of enrolled patients and the expected calendar time at the point of stopping/study end are also included.


# Binomial Pocock test in 50 patient cohort at 10% level, expected toxicity probability of 20%
poc_rule = calc.rule.bin(ns=1:50,p0=0.20,alpha=0.10,type="Pocock")

# Bayesian beta-binomial method of Geller et al. in 50 patient cohort at 10% level,
# expected toxicity probability of 20%
bb_rule = calc.rule.bin(ns=1:50,p0=0.20,alpha=0.10,type="BB",param=c(2,8))

# Compute operating characteristics at toxicity probabilities of 20%, 25%, 30%, 35%, and 40%

stoppingrule documentation built on May 29, 2024, 12:06 p.m.