lines.rule.bin {stoppingrule} | R Documentation |
Add Stopping Rule Curve to Current Plot (Binary Data)
Description
Add a binary stopping rule graphically as a curve on current plot
Usage
## S3 method for class 'rule.bin'
lines(x, smooth = TRUE, ...)
Arguments
x |
A |
smooth |
Binary indicator of whether stopping rule boundary should be smoothed by linear interpolation between evaluation points |
... |
Other options to be passed to generic |
Value
No return value; function solely modifies current plot
Examples
# 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))
# Plot stopping boundaries for stopping rules
plot(poc_rule,col="blue")
lines(bb_rule,col="red")
[Package stoppingrule version 0.4.0 Index]