Competing Risks Regression
# S3 method for class 'formula'
crr(formula, data, failcode = NULL, conf.level = 0.95, ...)
crr(x, ...)
# Default S3 method
crr(x, ...)
formula with Surv()
on LHS and covariates on RHS.
The event status variable must be a factor, with the first level indicating
'censor' and subsequent levels the competing risks. The Surv(time2=)
argument cannot be used.
data frame
Indicates event of interest. If failcode=
is NULL
,
the first competing event will be used as the event of interest.
Default is NULL
.
confidence level. Default is 0.95.
passed to methods
input object
tidycrr object
Other crr() functions:
broom_methods_crr
,
predict.tidycrr()
crr(Surv(ttdeath, death_cr) ~ age + grade, trial)
#> 11 cases omitted due to missing values
#>
#> ── crr() ───────────────────────────────────────────────────────────────────────
#> • Call Surv(ttdeath, death_cr) ~ age + grade
#> • Failure type of interest "death from cancer"
#>
#> Variable Coef SE HR 95% CI p-value
#> age 0.006 0.010 1.01 0.99, 1.03 0.55
#> gradeII 0.060 0.361 1.06 0.52, 2.16 0.87
#> gradeIII 0.431 0.324 1.54 0.82, 2.90 0.18