surv_aj | R Documentation |
Wrapper around 'survival::survfit.formula' for allowing the use of 'purrr::map' and fit several one covariate KM estimates at a time.
surv_aj(x, data, time = "time", event = "event", ...)
x |
name of the covariate column. |
data |
data.frame with the survival data. |
time |
name of the time variable column. |
event |
name of the censor/death variable column. |
... |
extra arguments passed to 'survival::survfit'. |
an object of class "survfit". See survfit.object for details. Methods defined for survfit objects are print, plot, lines, and points.
survfit.formula
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.