Converts an Ocens object to the simplest Surv object that works for the types of censoring that are present in the data.

Ocens2Surv(Y)

Arguments

Y

an Ocens object

Value

a Surv object

Examples

Y <- Ocens(1:3, c(1, Inf, 3))
Ocens2Surv(Y)
#> [1] 1  2+ 3