Competing Risks Regression

# S3 method for formula
crr(formula, data, failcode = NULL, conf.level = 0.95, ...)

crr(x, ...)

# S3 method for default
crr(x, ...)

Arguments

formula

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

data frame

failcode

Indicates event of interest. If failcode= is NULL, the first competing event will be used as the event of interest. Default is NULL.

conf.level

confidence level. Default is 0.95.

...

passed to methods

x

input object

Value

tidycrr object

See also

Other crr() functions: broom_methods_crr, predict.tidycrr()

Examples

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