survfit {survival} | R Documentation |
This function creates survival curves from either a formula (e.g. the Kaplan-Meier), a previously fitted Cox model, or a previously fitted accelerated failure time model.
survfit(formula, ...)
formula |
either a formula or a previously fitted model |
... |
other arguments to the specific method |
For details see the documentation for the appropriate method, i.e.,
?survfit.formula
or ?survfit.coxph
.
An object of class survfit
containing one or more survival curves.
Older releases of the code also allowed the specification for
a single curve
to omit the right hand of the formula, i.e., ~ 1
.
Handling this case required some non-standard and fairly fragile
manipulations, and this case is no longer supported.
Terry Therneau
survfit.formula
,
survfit.coxph
,
survfit.object
, print.survfit
,
plot.survfit
, summary.survfit