Learn R Programming

stoppingrule (version 0.6)

lines.rule.surv: Add Stopping Rule Curve to Current Plot (Survival Data)

Description

Add a survival stopping rule graphically as a curve on current plot for time-to-event data

Usage

# S3 method for rule.surv
lines(x, ...)

Value

No return value, function solely modifies current plot

Arguments

x

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

...

Other options to be passed to generic lines() function

Examples

Run this code
if (FALSE) poc_rule = calc.rule.surv(n=50,p0=0.20,alpha=0.10,type="Pocock",tau=100)
gp_rule = calc.rule.surv(n=50,p0=0.20,alpha=0.10,type="GP",tau=100,param=c(1,1000))
plot(poc_rule)
lines(gp_rule,col="red")

Run the code above in your browser using DataLab