survival_rates | R Documentation |
Compute survival rates by KM estimate for given time points for an univariate survival analysis
survival_rates(
result,
time_points,
percentage_decimal_places = 1,
time_precision = 0,
timespan_unit = c("days", "months", "years")
)
result |
The result generated by |
time_points |
Time points to compute survival rate at |
percentage_decimal_places , time_precision |
Precision with which to print floating point values in their label form |
timespan_unit |
Unit for time spans: "days", "months" or "years". |
A data frame with time, number at risk, number with event, survival rate with CI, and time and rate formatted for printing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.