Formats and prints a maxcombo_fast object. It shows the total sample
size, a table of the Fleming-Harrington component Z-scores, and the
max-combo statistic with its p-value. For a one-sided test the statistic is
the most negative component, so a negative value favors the treatment
group, matching the sign convention of survdiff_fast. For a
two-sided test the statistic is the largest component in absolute value.
Arguments
- x
An object of class
"maxcombo_fast"returned bymaxcombo_fast.- digits
Number of significant digits to display. Defaults to the global option
getOption("digits").- ...
Additional arguments (currently unused).
Examples
library(survival)
fit <- maxcombo_fast(ovarian$futime, ovarian$fustat, ovarian$rx,
control = 1, side = 1)
print(fit)
#> Max-combo weighted log-rank test (two-group)
#>
#> N = 26, control = 1
#>
#> Z
#> FH(0,0) -1.0309
#> FH(0,1) 0.0101
#> FH(1,0) -1.2980
#> FH(1,1) -0.0576
#>
#> Max-combo statistic = -1.298 (one-sided), p-value = 0.1512
#> ---
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
