Analysis results data for comparison of survival using survival::survdiff()
.
Arguments
- formula
(
formula
)
a formula- data
(
data.frame
)
a data frame- rho
(
scalar numeric
)
numeric scalar passed tosurvival::survdiff(rho)
. Default isrho=0
.- ...
additional arguments passed to
survival::survdiff()
Examples
library(survival)
library(ggsurvfit)
#> Loading required package: ggplot2
ard_survival_survdiff(Surv_CNSR(AVAL, CNSR) ~ TRTA, data = cards::ADTTE)
#> {cards} data frame: 4 x 8
#> variable context stat_name stat_label stat fmt_fn
#> 1 TRTA survival… statistic X^2 Stat… 60.27 1
#> 2 TRTA survival… df Degrees … 2 1
#> 3 TRTA survival… p.value p-value 0 1
#> 4 TRTA survival… method method Log-rank… NULL
#> ℹ 2 more variables: warning, error