Competing Risks Analysis
A survival analysis method for estimating how likely each type of event is when the occurrence of one event means the others can no longer be experienced.
How long does it take for a kidney transplant patient’s graft to fail? If a patient dies while the graft is still working normally, how should that patient be analyzed? Could the likelihood of the two events differ depending on the treatment?
Competing risks analysis is a method for analyzing situations in which, among several types of events, the one that happens first prevents the others from happening. After a kidney transplant, “graft failure” and “death before graft failure” are classic competing events.
If you use the usual Kaplan–Meier approach, treat competing events as ordinary censoring, and calculate 1 − survival probability, you can overestimate the actual cumulative probability of the event of interest. Competing risks analysis uses a cumulative incidence function (CIF) for each event type and, depending on the research question, examines covariate relationships with a cause-specific hazard model or a Fine–Gray model.
This method is used for treatment outcomes in transplant patients, cancer recurrence versus death before recurrence, discharge versus in-hospital death, analysis of equipment failure causes, and more. In this article we use a kidney transplant example to cover the difference between competing events and censoring, cumulative incidence curves, interpreting hazard ratios, choosing a model, and points to watch out for when reporting results.
What is competing risks analysis?
It analyzes how often mutually exclusive event types occur over time.
Competing risks analysis handles both the type of the first event each subject experiences during follow-up and the time until that event. For example, a kidney transplant patient may experience graft failure first, or may die while the graft is still functioning. The key point is that, depending on which event happens first, the other event can no longer be observed in the same way.
The analysis usually records the time to the event, the event type, and the covariates. The event type distinguishes the event of interest (e.g., graft failure), the competing event (death before graft failure), and censoring due to the end of observation.
Why isn’t ordinary survival analysis enough?
Turning competing events into censoring can lead you to misinterpret the cumulative probability of the event of interest.
In Kaplan–Meier analysis, a censored observation is treated as carrying only the information that no event had occurred up to that time. But a patient who died before graft failure can never experience graft failure afterward. If you treat death the same as simply losing track of a patient and calculate 1 − Kaplan–Meier, the result differs from the real-world cumulative probability of graft failure.
How do competing events differ from censoring?
Record graft failure, death before graft failure, and end of follow-up separately.
| Situation | Code in the data | Meaning |
|---|---|---|
| Graft failure occurs | 1 · Event of interest | The event of interest happened first |
| Death before graft failure | 2 · Competing event | The event of interest can no longer occur |
| No event by the end of the study | 0 · Right-censored | No event observed by the end of observation |
| Lost to follow-up / follow-up stopped | 0 · Right-censored | What happened after the last confirmed time is unknown |
The same patient can die after graft failure, but here we analyze graft failure as the first event and death before graft failure. To also analyze death after graft failure, you need a different study design, such as a multistate model.
Worked example: patient outcomes after kidney transplant
Comparing the cumulative incidence of graft failure and death before graft failure.
Suppose 400 kidney transplant patients were followed from the time of transplant for up to 4 years. The data record time since transplant, type of first event, age, donor type, and key clinical characteristics. The numbers below are a hypothetical example to illustrate interpretation.
| Outcome observed | Patients | Share |
|---|---|---|
| Graft failure | 84 | 21.0% |
| Death before graft failure | 48 | 12.0% |
| Censored at study end or loss to follow-up | 268 | 67.0% |
| Total | 400 | 100.0% |
The shares in this table simply divide each patient’s observed outcome by the total, and they are not the same as the estimated cumulative incidence at 4 years. Because follow-up time can differ from patient to patient, the CIF must be estimated using the time information.
What is the cumulative incidence function (CIF)?
It gives the probability that the event of interest occurs first by a given time.
The cumulative incidence function (CIF) takes the possibility of competing events into account and estimates the probability that a particular event occurs first by time t. You can plot a CIF for graft failure and a CIF for death before graft failure separately.
At any given time, the sum of the event-specific CIFs is the cumulative probability of a first event from any cause. Adding the probability that no event has happened yet gives 1.
How do you read CIF curves?
Compare the height of each event’s curve at the same time, and check the follow-up period.
For example, suppose that in a hypothetical analysis the CIF of graft failure at 4 years is 0.24 and the CIF of death before graft failure is 0.13. This means the cumulative probability that each event occurs before the other within 4 years is estimated at about 24% and 13%, respectively.
| Status at 4 years | Probability (illustrative) | Interpretation |
|---|---|---|
| Graft failure occurs first | 24% | Experiences graft failure as the first event within 4 years |
| Death before graft failure | 13% | Dies before graft failure |
| Neither event occurs first | 63% | Neither event has occurred by 4 years |
Which hazard model fits the research question?
Cause-specific hazards and cumulative incidence are not related in the same way.
Regression models for competing risks fall into two main types: the cause-specific hazard model and the Fine–Gray model. The former describes the instantaneous hazard of a particular event among people who have not yet experienced any event, and the latter describes the subdistribution hazard, which is linked to the CIF of a particular event.
| Comparison | Cause-specific hazard model | Fine–Gray model |
|---|---|---|
| Main question | How does the hazard of graft failure differ among patients who have not yet had an event? | Which variables are associated with differences in the cumulative probability of graft failure by 4 years? |
| Key measure | Cause-specific hazard ratio (csHR) | Subdistribution hazard ratio (sHR) |
| Handling competing events | In the model for that cause, removed from the risk set when a competing event occurs | Reflected in the subdistribution risk set in a special way |
| Focus of interpretation | Cause-specific instantaneous hazard in the event process | Pattern of cumulative incidence of the event of interest |
How do you interpret hazard ratios?
csHR and sHR are not the same measure, and neither is a ratio of cumulative probabilities.
If, in hypothetical results, the csHR for graft failure in older patients is 1.35, that means that among patients who have not yet had either event, the cause-specific instantaneous hazard under the same conditions is higher in the older group than in the comparison group. An sHR of 1.20 means the older group is higher on the subdistribution hazard scale of the Fine–Gray model; it does not mean the 4-year probability of graft failure is exactly 20% higher.
| Covariate | Model | Hazard ratio | 95% confidence interval | p-value |
|---|---|---|---|---|
| Older group (ref: not older) | Cause-specific hazard model | 1.35 | 1.05–1.74 | .020 |
| Older group (ref: not older) | Fine–Gray model | 1.20 | 0.94–1.53 | .140 |
| Deceased donor (ref: living donor) | Fine–Gray model | 1.48 | 1.12–1.95 | .006 |
The numbers in this results table are an example made to explain how the measures differ; they are not model fits to the actual 400-patient data. The confidence intervals and p-values should not be used as real estimates either.
How do you compare CIFs between groups?
Distinguish cumulative incidence curves, Gray’s test, and covariate-adjusted results.
Plotting the CIF of graft failure by donor type shows how cumulative incidence evolves over time in the two groups. Gray’s test is a way to check whether the CIFs differ between groups while accounting for competing risks. However, this test alone does not adjust for patient age or comorbidities.
If you need to adjust for covariates as well, consider Fine–Gray regression or a cause-specific hazard model suited to your purpose. If the curves cross during follow-up, it may be hard to summarize the relationship with a single hazard ratio.
What should you watch out for in the analysis?
Check the definition of competing events, the censoring assumption, and effects that change over time.
Event definition: Be clear about whether graft failure was defined as the start of dialysis again, re-transplantation, or a particular laboratory criterion. You also need to distinguish whether a death occurred before or after graft failure.
Censoring: If loss to follow-up is related to patient prognosis, the assumption of noninformative censoring may not hold. Check each patient’s follow-up time and the reason follow-up stopped.
Proportional hazards assumption: For the cause-specific Cox model and the Fine–Gray model, check the form of proportional hazards each one uses. If an effect changes over time, you can consider a time-dependent effect.
Causal interpretation: Even if a difference in cumulative incidence by donor type is observed, you cannot conclude it is a causal effect of donor type unless confounders such as patient selection and underlying conditions are ruled out.
How does it differ from other analyses?
Survival analysis, competing risks, and multistate models address different questions.
| Method | Main question | Key distinction |
|---|---|---|
| Kaplan–Meier | What is the overall probability of remaining free of a first event? | 1−KM that ignores competing events is not a cause-specific CIF |
| Cause-specific Cox | What is the cause-specific instantaneous hazard among patients who have not yet had an event? | Analyzes the mechanism of, and associations with, that event |
| Fine–Gray | What is the cumulative incidence pattern of a particular event, and which covariates matter? | Analyzes the subdistribution hazard, which is directly linked to the CIF |
| Multistate model | How do states change, including death after graft failure? | Also analyzes transitions between states after the first event |
How do you report the results?
Present each event’s definition and count, the CIF at each time point, and the model hazard ratios separately.
A research report should give the total number of patients, the starting point of observation after transplant and the follow-up period, the definition and number of each competing event, the number censored, the CIF and confidence interval at the time points of interest, and the regression model and covariates used. Report the results of Gray’s test and Fine–Gray regression separately without mixing them up.
Cumulative incidence functions were estimated for 400 kidney transplant patients, with graft failure and death before graft failure defined as competing events. In the hypothetical results for learning, the cumulative incidence at 4 years was 24% for graft failure and 13% for death before graft failure. In the Fine–Gray model, deceased-donor grafts showed a higher subdistribution hazard of graft failure than living-donor grafts (sHR = 1.48, 95% CI [1.12, 1.95], p = .006). This result reflects an association that accounts for covariates and follow-up time, and does not imply a causal effect.
The text above is a hypothetical example to show the format. In an actual paper, fill in these estimates only after checking the data that produced them, how the confidence intervals were calculated, and the model diagnostics.
Where is competing risks analysis used?
It suits fields where which of several events happens first changes the results.
| Field | Event of interest | Competing event |
|---|---|---|
| Organ transplantation | Graft failure | Death before graft failure |
| Oncology | Cancer recurrence | Death before recurrence |
| Hospital operations | Discharge | In-hospital death |
| Machine reliability | A specific failure mode of a part | An earlier failure from another cause |
| Customer analytics | Service cancellation | Other types of ending that occur before cancellation |
Competing risks analysis takes into account both the type of event and the order in which events occur.
Even over the same follow-up period, the cumulative probability of the event of interest changes depending on which event happens first.
In the kidney transplant example, graft failure and death before graft failure must be distinguished as separate competing events. Looking at the cumulative incidence function (CIF) of each event shows the probability of which event appears first by a given time, and the cause-specific hazard model and the Fine–Gray model describe relationships with covariates from different perspectives.
The most important thing is to choose the measure that fits the purpose of the analysis. Do not confuse cause-specific instantaneous hazards with cumulative probabilities, and also check how censoring arose and the assumptions the hazard ratios require. In particular, the starting point for interpreting results correctly is not to treat a hazard ratio as a change in absolute probability over a specific period or as a causal effect.
Competing risks analysis is used when another event can occur before the event of interest and prevent it. The cumulative incidence function (CIF) is the probability of an event by each time point, accounting for competing events. Do not interpret 1 − Kaplan–Meier as an event-specific CIF. The cause-specific hazard ratio (csHR) and the subdistribution hazard ratio (sHR) answer different questions. Neither measure equals a ratio of probabilities at a specific time point.