Tutorials › Competing Risks and Multi-State Models › Aalen-Johansen Estimation With Right Censoring

Cumulative Incidence Functions · Tutorial 57 of 699

Aalen-Johansen Estimation With Right Censoring

Work through the Aalen–Johansen calculation with right censoring, including risk-set updates, event-free survival, and checks on the cumulative incidence estimates.

Intermediate 10 min read

What You'll Learn

  • Determine who belongs in the risk set immediately before each event time.
  • Distinguish a censoring time’s effect on later risk sets from an event’s effect on estimated survival.
  • Calculate Aalen–Johansen event-free survival and cause-specific cumulative incidence with right-censored data.
  • Handle tied events and censoring at the same time using the risk set just before that time.
  • Check that the cause-specific cumulative incidence estimates sum to one minus estimated event-free survival.
  • Recognize when censoring or risk-set bookkeeping can make an estimate misleading.

Why Right Censoring Changes the Calculation

A subject who is right-censored has no observed event time or event cause after the last time they were known to be event-free. That subject contributes information up to the censoring time: they belong in the risk set before then, but not in risk sets at later event times. They are not an observed event, and censoring does not itself create a jump in estimated event-free survival or cumulative incidence.

The Aalen–Johansen estimator combines two pieces of information at each observed event time: the fraction of the risk set experiencing each cause, and the estimated fraction still event-free just before that time. The second piece matters because an event increment is applied to the event-free fraction remaining from earlier times. Thus, the estimator is not simply a count of observed events divided by the original sample size.

Definition: Let \(T\) be time to the first event and \(J\) its cause, with \(J\in\{1,\ldots,K\}\). Let \(C\) be the right-censoring time. We observe \(X=\min(T,C)\) and an indicator of whether an event was observed; if so, we also observe its cause \(J\). At an observed event time \(t_j\), \(Y_j\) is the number of subjects still under observation and event-free immediately before \(t_j\), and \(d_{jk}\) is the number experiencing cause \(k\) at \(t_j\). Write \(d_j=\sum_{k=1}^K d_{jk}\).

For the calculation, an individual censored at \(t_j\) is included in \(Y_j\): they were observed and event-free immediately before that time. An event at \(t_j\) is also included in \(Y_j\), then counted in \(d_j\) and the appropriate cause count. After time \(t_j\), both event cases and cases censored at that time leave subsequent risk sets. Censoring times with no event do not appear as event times in the product or sum below.

The Estimator With Censoring

Let \(\widehat S(t)\) estimate the probability of remaining free of every event through time \(t\), and let \(\widehat F_k(t)\) estimate the probability of experiencing cause \(k\) by time \(t\) before any competing event. At each distinct observed event time, the updates are

$$ \widehat S(t_j)=\widehat S(t_j-)\left(1-\frac{d_j}{Y_j}\right), \qquad \widehat F_k(t_j)=\widehat F_k(t_j-)+\widehat S(t_j-)\frac{d_{jk}}{Y_j}. $$

Initialize \(\widehat S(0-)=1\) and \(\widehat F_k(0-)=0\). Between event times, all these estimates remain constant, including at a censoring time that has no event. Equivalently, through time \(t\),

$$ \widehat S(t)=\prod_{j:t_j\leq t}\left(1-\frac{d_j}{Y_j}\right), \qquad \widehat F_k(t)=\sum_{j:t_j\leq t}\widehat S(t_j-)\frac{d_{jk}}{Y_j}. $$

The \(Y_j\) in these expressions is calculated from the observed follow-up, including subjects censored only after \(t_j\), and excluding subjects censored before \(t_j\). Censored subjects therefore affect the estimate indirectly by reducing later risk-set sizes. For these estimates to represent the target event-time distribution, censoring must satisfy an appropriate independent-censoring condition. The calculation itself does not establish that condition; it is an assumption about the data-generating and observation processes.

Why the Event Increment Uses Event-Free Survival

Among the \(Y_j\) subjects at risk just before \(t_j\), the observed fraction with cause \(k\) at that time is \(d_{jk}/Y_j\). This estimates a cause-specific event probability for that time among those still event-free and under observation. But the target population includes subjects who may already have had an event. The estimated fraction of the original population still event-free just before \(t_j\) is \(\widehat S(t_j-)\). Multiplying these two quantities gives the estimated population probability mass for cause \(k\) at \(t_j\).

$$ \text{estimated cause-}k\text{ mass at }t_j = \widehat S(t_j-)\frac{d_{jk}}{Y_j}. $$

This also gives a direct check on the calculation. Since \(\sum_k d_{jk}=d_j\), the sum of all cause-specific increments at \(t_j\) is \(\widehat S(t_j-)d_j/Y_j\). The event-free survival decrement at that time is

$$ \widehat S(t_j-)-\widehat S(t_j) = \widehat S(t_j-)\frac{d_j}{Y_j} = \sum_{k=1}^K \widehat S(t_j-)\frac{d_{jk}}{Y_j}. $$

Starting with \(\widehat S(0-)=1\) and all cumulative incidences equal to zero, this equality holds at each event-time update. Adding the increments over event times therefore gives \(\sum_{k=1}^K\widehat F_k(t)=1-\widehat S(t)\). The identity is useful for detecting arithmetic or coding errors; it does not by itself show that the censoring assumption is appropriate.

Worked Example: Censoring Changes Later Risk Sets

Consider seven hypothetical subjects followed for time to one of two competing events, A or B. One has event A at time 1; one is censored at time 2; one has event B at time 3; one is censored at time 4; one has event A at time 5; one is censored at time 6; and the last is censored at time 7 without an observed event. Assume censoring is suitable for estimating the target event distribution. Calculate the estimates through time 5.

At time 1, all seven subjects are at risk, so \(Y_1=7\), \(d_{1A}=1\), and \(d_1=1\). Thus \(\widehat S(1)=1(1-1/7)=6/7\), and the cause-A increment is \(1(1/7)=1/7\). The cause-B increment is zero.

The subject censored at time 2 leaves before the next event. Therefore, at time 3, \(Y_2=5\), not 6 or 7. One subject has cause B, so \(\widehat S(3)=(6/7)(1-1/5)=24/35\). The cause-B increment is \((6/7)(1/5)=6/35\), making \(\widehat F_B(3)=6/35\).

The subject censored at time 4 is excluded from the risk set at time 5. There are \(Y_3=3\) subjects at risk, and one has cause A. The event-free estimate becomes \((24/35)(1-1/3)=16/35\). The cause-A increment is \((24/35)(1/3)=8/35\), so \(\widehat F_A(5)=1/7+8/35=13/35\).

The estimates at time 5 are therefore \(\widehat S(5)=16/35\), \(\widehat F_A(5)=13/35\), and \(\widehat F_B(5)=6/35\). Their sum is \(16/35+13/35+6/35=1\). The censoring at time 6 and time 7 causes no further change through time 5.

Worked Example: An Event and Censoring at the Same Time

In a hypothetical group of five, one subject has cause A at time 1 and one other subject is censored at time 1. At time 2, one subject has cause A and one has cause B. The remaining subject has no event by time 2. Assume censoring is suitable for estimating the target event distribution. Find the estimates through time 2.

Immediately before time 1, \(Y_1=5\): the person censored at time 1 was still observed and event-free just before that time. The cause-A event gives \(\widehat S(1)=1(1-1/5)=4/5\) and \(\widehat F_A(1)=1/5\). The censoring has no separate survival decrement.

At time 2, the cause-A event, the cause-B event, and the subject event-free through time 2 remain under observation, so \(Y_2=3\). There are two events in total, hence \(\widehat S(2)=(4/5)(1-2/3)=4/15\). Each cause has one event, so each cause-specific increment is \((4/5)(1/3)=4/15\). Consequently, \(\widehat F_A(2)=1/5+4/15=7/15\) and \(\widehat F_B(2)=4/15\). The sum of the two cumulative incidences is \(11/15=1-4/15\).

Checks, Alternatives, and Failure Modes

Before interpreting an estimate, check that each \(Y_j\) is the number under observation and event-free immediately before the event time, and that \(d_j\leq Y_j\). A subject censored earlier must not contribute to a later risk set. At a time with censoring but no event, the estimates must not jump. At an event time, \(\widehat S(t)\) cannot increase and each \(\widehat F_k(t)\) cannot decrease. Finally, their sum should satisfy \(\widehat S(t)+\sum_k\widehat F_k(t)=1\), apart from rounding.

Common alternatives answer different questions or require different assumptions. A raw proportion of observed cause-k events divided by the starting sample size treats subjects whose outcomes are censored as though their eventual outcomes were known. Treating competing events as censoring in a Kaplan–Meier calculation does not estimate the observed-population probability of cause \(k\) by time \(t\); the Aalen–Johansen calculation instead accounts for event-free survival across all causes. When there is no censoring, the same event-time updates still apply, but risk sets shrink only because of events.

A plausible-looking step function is not proof that the estimator is informative. Sparse risk sets late in follow-up can make estimates sensitive to a few observations. Heavy or systematically different censoring can also undermine the interpretation if the independent-censoring condition is not reasonable. Review follow-up and censoring patterns, verify event coding and risk-set counts, and avoid interpreting a late estimate as well supported merely because it can be calculated. The estimator describes probabilities in context; it does not establish that differences between groups are causal.

Common pitfall: Removing a subject from the risk set at their censoring time and treating that removal as an event makes estimated event-free survival fall when no event was observed. The correction is to include the subject in the risk set immediately before censoring, make no event-time update for censoring alone, and exclude them from later risk sets.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A subject is censored at time 4, and an event occurs at time 4. Should that subject be counted in the risk set immediately before the event? Why?
  2. At an event time, \(Y=10\), with two cause-A events and one cause-B event. If \(\widehat S(t-)=0.8\), calculate the event-free estimate after the time and both cause-specific increments.
  3. Why does censoring without an event not directly change \(\widehat S(t)\) or any \(\widehat F_k(t)\)?
  4. At a time \(t\), the estimates are \(\widehat S(t)=0.55\), \(\widehat F_A(t)=0.25\), and \(\widehat F_B(t)=0.20\). What identity do they satisfy, and what would a failure of that identity suggest?

Solutions. (1) Yes. The subject is observed and event-free immediately before time 4, so they belong in the pre-event risk set; censoring removes them only from later risk sets. (2) There are three events, so \(\widehat S(t)=0.8(1-3/10)=0.56\). The cause-A increment is \(0.8(2/10)=0.16\), and the cause-B increment is \(0.8(1/10)=0.08\). (3) Censoring provides no observed event to add to \(d_j\); it only affects which subjects remain in subsequent risk sets. (4) The estimates satisfy \(0.55+0.25+0.20=1\). A discrepancy beyond rounding suggests an error in the event counts, risk sets, updates, or recorded cause-specific increments.

Clinical Biostats