Arguments
- formula
A formula passed to
survfit
.- re_indicator
The name of a variable indicating that these rows in the dataset belong to the risksets of the recurrent event process.
- ce_indicator
The name of a variable indicating that these rows in the datasets belong to the riskset of the competing event process.
- data
A
data.frame
in stacked format. The dataset needs to include one row for the competing event and one row for each risk episode of the recurrent event.- re_control
An optional
list
with arguments passed tosurvfit
when computing risksets for the recurrent event.- ce_control
An optional
list
with arguments passed tosurvfit
when computing risksets for the competing event.