identify_competing_risk is data descriptor function used to identify a competing risk variable.

identify_competing_risk(name = NULL, event_value = 1)

Arguments

name

The name of a variable in the input data with a censoring. This should be supplied as an expression not a character string. The censoring date should be in days from time 0.

event_value

The value of the variable that indicates the event is the event of interest, all other values denote competing events.

Value

A object that can be used by specify_models to add information about the outcome to the data description function.

Author

M. Alan Brookhart