Learn R Programming

tidycmprsk (version 1.1.0)

crr: Competing Risks Regression

Description

Competing Risks Regression

Usage

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

crr(x, ...)

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

Value

tidycrr object

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

See Also

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

Examples

Run this code
crr(Surv(ttdeath, death_cr) ~ age + grade, trial)

Run the code above in your browser using DataLab