
Surv
.
Different
methods apply to different types of Surv
objects.## S3 method for class 'Surv':
plot(x, l = 3, ...)
Surv
objectl/nrow(x)
type
of the Surv
object.
This is
given by attr(s,which="type")
:df0 <- data.frame(t1=c(0,2,4,6,NA,NA,12,14),
t2=c(NA,NA,4,6,8,10,16,18))
s5 <- Surv(df0$t1,df0$t2,type="interval2")
plot(s5)
Run the code above in your browser using DataLab