surv_summary: Summary of a survival curve

surv_summaryR Documentation

Summary of a survival curve

Description

Prints and returns a list containing the survival curve, confidence limits for the curve, and other information which can be more useful than the acutal return value of survival:::print.summary.survfit.

Usage

surv_summary(object, digits = 3L, locf = FALSE, ...)

Arguments

object

a survfit object

digits

number of digits to use in printing numbers

locf

logical; if TRUE, any NA probabilities will be carried forward, e.g., if no events occurred during two consecutive time intervals

...

additional arguments passed to summary.survfit

Value

A list with survival:::print.summary.survfit matrices for each strata, i.e., the output printed.

See Also

survfit; print.summary.survfit

Examples

library('survival')
fit1 <- survfit(coxph(Surv(time, status) ~ strata(I(age > 60)), cancer))
surv_summary(fit1, times = c(0, 100, 200))


raredd/rawr documentation built on April 29, 2024, 10:29 a.m.