Learn R Programming

lava.tobit (version 0.5)

rbind.Surv: Appending

Description

rbind method for Surv objects

Usage

# S3 method for Surv
rbind(...)

Arguments

...
Surv objects

Value

Surv object

Examples

Run this code

y <- yl <- yr <- rnorm(10)
yl[1:5] <- NA; yr[6:10] <- NA
S1 <- Surv(yl,yr,type="interval2")
S2 <- Surv(y,y>0,type="right")
S3 <- Surv(y,y<0,type="left")

rbind(S1,S1)
rbind(S2,S2)
rbind(S3,S3)

Run the code above in your browser using DataLab