round_km | R Documentation |
Rounded Kaplan-Meier curves
round_km(data, time, event, strata = NULL, threshold = 6)
data |
A data frame containing the required survival times |
time |
Event/censoring time variable, supplied as a character. Must be numeric >0 |
event |
Event indicator variables supplied as a character. Censored ( |
strata |
names of stratification / grouping variables, supplied as a character vector of variable names |
threshold |
Redact threshold to apply |
This function rounds Kaplan-Meier survival estimates by delaying events times until at least threshold
events have occurred.
A tibble with rounded numbers of at risk, events, censored, and derived survival estimates, by strata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.