print.survfitr: Print a short summary of survival curves for recurrent event...

View source: R/methods.survfitr.R

print.survfitrR Documentation

Print a short summary of survival curves for recurrent event data

Description

Prints, for each curve, the number of subjects, the number of events, the restricted mean survival and its standard error, the median survival and the minimum, maximum and median number of recurrences per subject.

Usage

## S3 method for class 'survfitr'
print(x, scale = 1, digits = max(options()$digits - 4, 3), ...)

Arguments

x

the result of a call to survfitr(), psh_fit(), wc_fit() or mlefrailty_fit().

scale

a numeric value to rescale the survival time, e.g. if the input data are in days, scale = 365 scales the printout to years.

digits

number of digits to print.

...

other unused arguments.

Details

The restricted mean and its standard error are based on a truncated estimator: if the survival curve does not reach zero, the reported quantity is the mean survival restricted to the time before the last censoring. The median is the time at which the survival curve crosses 0.5.

Value

x, invisibly.

See Also

summary.survfitr(), survfitr()

Examples

data(MMC)
fit <- survfitr(Survr(id, time, event) ~ group, data = MMC)
print(fit)

survrec documentation built on Sept. 22, 2026, 9:07 a.m.