crr: Competing Risks Regression

View source: R/crr.R

crrR Documentation

Competing Risks Regression

Description

Competing Risks Regression

Usage

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

crr(x, ...)

## Default S3 method:
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)

tidycmprsk documentation built on Sept. 11, 2024, 7:24 p.m.