surv_combiner: Surv combine

View source: R/surv_combine.R

surv_combinerR Documentation

Surv combine

Description

combine Surv variables

Usage

surv_combiner(..., comb.type = "EELC", surv.output = TRUE)

Arguments

...

Surv objects

comb.type

how the Surv objects are combined. 'EELC' (Early Events, Late Censored) thinks of the Surv objects as informative of each other, e.g. if the first observation in the first row is censored at 1 for the first variable and at 2 for the second variable, then the combination will pick the second one. More specifically, it will pick the earliest event (as an event) if there is at least one event, and it will pick the latest censored (as censored) if there are no events. 'earliest' thinks of the Surv objects as being very distinct, so it will simply pick the earliest time (as event or censored).

surv.output

return a Surv object (default TRUE), else a data frame with variables time and event.

Details

combine two or more Surv objects into a combined Surv object


renlund/datma documentation built on June 2, 2025, 5:12 a.m.