| summary.Surv | R Documentation |
The missing S3 method of the generic function summary for Surv object.
## S3 method for class 'Surv'
summary(object, ...)
object |
a Surv object |
... |
additional parameters, currently of no use |
The function summary.Surv() returns a character vector.
Without function summary.Surv(),
the S3 generic function summary dispatches to function summary.default
if the input is a Surv object.
summary.factor
aml2 = survival::aml |>
within.data.frame(expr = {
os = survival::Surv(time = time, event = status)
time = status = NULL
})
summary(aml2$os)
summary(aml2)
heart2 = survival::heart |>
within.data.frame(expr = {
os = survival::Surv(time = start, time2 = stop, event = event)
start = stop = event = NULL
})
summary(heart2$os)
summary(heart2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.