prep_km_data | R Documentation |
Prepare kaplan-meier estimates in a tidy format
prep_km_data(data, formula)
data |
dataframe in which to evaluate formula |
formula |
formula to be passed to 'survival::survfit' |
data.frame with kaplan-meier estimates over time
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.