Examples for 'survival::survcondense'


Shorten a (time1, time2) survival dataset

Aliases: survcondense

Keywords: survival

### ** Examples

dim(aml)
[1] 23  3
test1 <- survSplit(Surv(time, status) ~ ., data=aml,
                   cut=c(10, 20, 30), id="newid")
dim(test1)
[1] 62  5
# remove the added rows
test2 <- survcondense(Surv(tstart, time, status) ~ x, test1, id=newid)
dim(test2)
[1] 23  5

[Package survival version 3.5-3 Index]