How this calculation works
Estimate the cumulative probability of each competing event cause from follow-up records. All causes share a single event-free survival process, so a competing event removes a subject from the possibility of a later first event of the selected cause.
F_k(t)=Σ_(u≤t) S(u−)d_k(u)/Y(u); S(u)=S(u−)[1−Σ_k d_k(u)/Y(u)].A worked example
The eight example records include cause 1 and cause 2 events tied at time 2. They use the same pre-event risk set. Final cause incidences are 0.484375 and 0.281250; remaining event-free survival is 0.234375. These three probabilities sum to one.
Good to know
2–300 positive follow-up times; cause codes 0–4 with zero denoting right censoring. Grouped-time first-event Aalen–Johansen recursion; all causes share a pre-event risk set and censors leave after events. No random time jitter, left truncation, repeated transitions, cause-specific regression, confidence intervals or causal counterfactual estimate.
Reference: Lifelines competing risks documentation (opens in a new tab) ↗
Ask for the observed first-event probability
Competing risks arise when different event types prevent one another from being the first observed event. A subject who has already experienced a competing first event no longer remains eligible for a later first event of the cause being measured.
The output therefore describes cumulative incidence in the world where all entered causes occur. It does not estimate what would happen if a competing cause were prevented. That distinction matters even when both analyses use exactly the same follow-up times.
Compare this with the Log rank survival comparison calculator with censoring. Treating competing events as censored does not estimate observed cause incidence.
Code censoring separately from every event cause
Use zero only when observation ends without any of the modeled first events. Positive integer codes identify mutually exclusive causes at the recorded first-event time. Each subject contributes one row rather than one row for every event it might eventually experience.
Cause labels do not carry an inherent order or severity. Codes one and two simply identify different processes. The calculator reports their labels alongside each incidence vector so a vector component is not confused with an ordinal score or event count.
Every increment starts with event-free survival
At a time u, a cause-specific event count is divided by the number at risk immediately before that time. Multiplying by survival just before u assigns the increment only to subjects who could still experience a first event then.
The survival update removes the total event hazard across all causes. Consequently each incidence curve is nondecreasing, while event-free survival is nonincreasing. Their sum is checked against one at every displayed step, exposing bookkeeping or normalization errors.
Tied causes share a defined risk set
The example places different causes at the same recorded time. Both increments use the same pre-event risk set and pre-event survival. Applying one cause first and then updating survival before the other would introduce an arbitrary ordering artifact.
This implementation groups ties directly and removes censors afterward. It does not jitter tied times. If an external package uses random jitter for ties, comparing its single realization requires care even when the underlying competing-risk definition is the same.
Incidence differs from one minus a cause-only KM curve
Treating competing events as ordinary censoring keeps them conceptually available for a selected event in a hypothetical process. A one-minus-Kaplan–Meier calculation from that recoding can exceed the observed cumulative incidence of the selected cause.
Here competing causes explicitly share the surviving probability mass. The result cannot be substituted into a counterfactual elimination analysis, nor does a difference between cause curves establish that one cause causes or protects against another.
Check sample support before reading a late step
Late follow-up may have a small remaining risk set. A large final jump can therefore depend on very few observed subjects, even though the arithmetic remains valid. The table displays the at-risk count so that scarcity is visible.
No uncertainty bands are supplied in this bounded version. A smooth-looking staircase or an exact probability-sum check should not be mistaken for high precision. Informative loss to follow-up can also violate the assumptions behind a descriptive cumulative-incidence estimate.
Keep the model at first events
The data format does not represent subjects moving repeatedly between health states or equipment states. Recurrent events, recovery, return to risk and transitions after an initial event require a more complete multistate history and transition model.
Use the supplied curves to describe the entered first-event cohort under its assumptions. Review event definitions and follow-up design before applying them to a new population. A mathematically consistent probability table is not a clinical or operational recommendation.
A few questions, answered
Can one subject have several cause rows?
No. This page expects one first-event or censoring record per independent subject.
How are tied causes handled?
They all use the same pre-event survival and risk set; censors are removed afterward.
Why does the total incidence stay below one?
Some probability remains event-free, so survival plus all cause incidences equals one.
Is competing-risk censoring equivalent?
No. Recoding competing events as censored answers a different hypothetical survival question.