Learn R Programming

survival (version 2.36-5)

survfit: Create survival curves

Description

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.

Usage

survfit(formula, ...)

Arguments

formula
either a formula or a previously fitted model
...
other arguments to the specific method

Value

  • An object of class survfit containing one or more survival curves.

Details

For details see the documentation for the appropriate method, i.e., ?survfit.formula or ?survfit.coxph.

See Also

survfit.formula, survfit.coxph, survfit.object, print.survfit, plot.survfit, summary.survfit