Description Usage Arguments Value Examples
Create a data frame for plotting a Kaplan-Meier curve by pulling components from survival:survfit.formula
1 |
formula |
A formula object, which must have a 'Surv' object as the response on the left of the '~' operator and the grouping term (often the treatment) on the right. |
data |
A data frame in which to interpret the variables named in the formula |
A data frame with columns group, time, n.risk, n.event, n.censor, surv, low, and upp
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.