Rdocumentation
powered by
Learn R Programming
emil (version 1.1-6)
as.Surv.outcome: Convert outcome vector to Surv vector
Description
Convert outcome vector to Surv vector
Usage
## S3 method for class 'outcome': as.Surv(x, main = 1, censor = NA, ...)
Arguments
x
Outcome vector.
main
Surv only supports one event type. This argument controls which type that will be kept, all others are considered censoring.
censor
A vector of event types to consider censoring.
...
Ignored, kept for S3 consistency.
Value
A vector of class
Surv
. All event types other than the main event are considered censoring.