Formats a SurvivalAnalysisUnivariateResult for printing
# S3 method for SurvivalAnalysisUnivariateResult
format(
x,
...,
label = NULL,
p_precision = 3,
hr_precision = 2,
p_less_than_cutoff = 0.001,
time_precision = 1,
include_end_separator = FALSE,
timespan_unit = c("days", "months", "years")
)
The result generated by analyse_survival
Further arguments passed from other methods.
A label describing the result
Precision with which to print floating point values
Cut-off for small p values. Values smaller than this will be displayed like "<..."
Append "\n---\n"? Comes handy if printing multiple results following each other
Unit for time spans: "days", "months" or "years".
A formatted string, ready for output with cat()