summary.survdiffr: Summarize a grouped bootstrap of survival quantiles

View source: R/survdiffr-methods.R

summary.survdiffrR Documentation

Summarize a grouped bootstrap of survival quantiles

Description

Computes, for each group, the observed quantile and a percentile bootstrap confidence interval, and for each pair of groups the difference of quantiles with its percentile interval and a two-sided bootstrap p-value for the null hypothesis of no difference.

Usage

## S3 method for class 'survdiffr'
summary(object, level = 0.95, ...)

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

Arguments

object

a grouped result of survdiffr().

level

confidence level of the percentile intervals.

...

ignored; kept for compatibility with the generic.

x

a summary.survdiffr object.

digits

number of digits to print.

Details

Replicates in which the survival estimate never fell below the requested level are treated as +Inf (the quantile exceeds the observed follow-up); pairs where both replicates are infinite are dropped from the difference. The p-value is 2 \min(P(D \le 0), P(D \ge 0)) over the replicated differences D.

Value

A list of class summary.survdiffr with components groups (data frame with the observed quantile and its interval per group) and contrasts (data frame with the pairwise differences, intervals and p-values).

See Also

survdiffr(), boot::boot.ci()

Examples

data(colon)
fit <- survdiffr(Survr(hc, time, event) ~ as.factor(dukes),
  data = colon, q = 0.5, seed = 1
)
summary(fit)

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