View source: R/survdiffr-methods.R
| summary.survdiffr | R Documentation |
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.
## S3 method for class 'survdiffr'
summary(object, level = 0.95, ...)
## S3 method for class 'summary.survdiffr'
print(x, digits = max(options()$digits - 4, 3), ...)
object |
a grouped result of |
level |
confidence level of the percentile intervals. |
... |
ignored; kept for compatibility with the generic. |
x |
a |
digits |
number of digits to print. |
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.
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).
survdiffr(), boot::boot.ci()
data(colon)
fit <- survdiffr(Survr(hc, time, event) ~ as.factor(dukes),
data = colon, q = 0.5, seed = 1
)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.