survival_rates {survivalAnalysis} | R Documentation |
Compute survival rates by KM estimate for given time points for an univariate survival analysis
Description
Compute survival rates by KM estimate for given time points for an univariate survival analysis
Usage
survival_rates(
result,
time_points,
percentage_decimal_places = 1,
time_precision = 0,
timespan_unit = c("days", "months", "years")
)
Arguments
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". |
Value
A data frame with time, number at risk, number with event, survival rate with CI, and time and rate formatted for printing
[Package survivalAnalysis version 0.4.0 Index]