Tutorials › Competing Risks and Multi-State Models › Event Histories as Counting Processes

Counting Processes and Martingale Theory · Tutorial 432 of 699

Event Histories as Counting Processes

Learn to translate an exact event-time record or a right-censored record into event and censoring counting processes, and check their paths and jumps.

Advanced 9 min read

What You'll Learn

  • Define the observed event time, censoring time, and event indicator for a subject.
  • Construct the event counting process from a right-censored event record.
  • Identify the jump time and jump size for observed events and censoring.
  • Distinguish an event-process jump from the end of observed follow-up.
  • Check right-continuity and interpret process paths at and between observed times.
  • Recognize ties, interval censoring, and other cases needing conventions or a richer representation.

From an Event Record to a Process

A time-to-event record is often stored as two numbers: a follow-up time and an indicator of whether the event was observed. A counting-process representation expresses the same information as a function of time. Before the event occurs, the function is zero; once an observed event occurs, it jumps to one. A censored observation does not produce an event jump. This time-indexed representation makes the event history explicit, while preserving the distinction between an event and the end of observation.

The setup here is one subject, one terminal event of interest, and observation beginning at a fixed time origin, denoted 0. Let \(T\) be the subject’s event time, which may be unobserved, and let \(C\) be the time at which observation would end because of censoring. The recorded follow-up ends at the earlier of these times. This representation describes the data; by itself, it does not assert that censoring is independent of the event time.

Definition: The observed follow-up time is \(Y=\min(T,C)\), and the event indicator is \(\delta=I(T\leq C)\), where \(I(A)\) equals 1 when statement \(A\) is true and 0 otherwise. The event counting process is \(N(t)=I(Y\leq t,\ \delta=1)\), for \(t\geq0\). Equivalently, \(N(t)=\delta I(Y\leq t)\). The censoring counting process is \(N^C(t)=I(Y\leq t,\ \delta=0)\).

With the convention that an event takes priority if event and censoring times tie, \(\delta=1\) when \(T=C\). Other tie conventions are possible, but one must be specified if ties can occur. Under this convention, \(N(t)\) records whether an event has been observed by time \(t\), and \(N^C(t)\) records whether censoring has ended follow-up by time \(t\). Each process stays at zero until its relevant observed endpoint, then stays at one. In this single-terminal-event setup, neither process can jump more than once.

Right-continuity means that the value at a time \(t\) agrees with the values immediately to its right: \(N(t)=\lim_{s\downarrow t}N(s)\). Thus, if the event occurs at time \(u\), it is counted at \(u\), not only after \(u\). The left-hand value \(N(u-)\) describes the value immediately before \(u\). The jump at \(u\), written \(\Delta N(u)=N(u)-N(u-)\), is 1 for an observed event and 0 otherwise. The notation \(\Delta N(u)\) denotes a process jump; it is distinct from the event indicator \(\delta\).

How Event and Censoring Times Appear in Jumps

The formula gives the path directly. If an event is observed at \(Y=u\), then \(\delta=1\), so \(N(t)=0\) for \(t<u\) and \(N(t)=1\) for \(t\geq u\). The event process has a jump of size 1 at \(u\). The censoring process remains zero. If follow-up instead ends in censoring at \(Y=c\), then \(\delta=0\): \(N(t)=0\) throughout observed follow-up, including at \(c\), while \(N^C(t)\) jumps from 0 to 1 at \(c\).

A useful identity follows from these definitions. Exactly one observed endpoint occurs by time \(t\) if follow-up has ended by \(t\), and neither process records an endpoint before then. Therefore,

$$ N(t)+N^C(t)=I(Y\leq t). $$

This identity is a check on the encoding: for one subject, the two processes cannot both jump under the stated tie convention. It does not tell us whether the endpoint was an event or censoring without examining the separate processes.

Worked Example: An Event Observed Before Censoring

Suppose, hypothetically, a participant’s event occurs at \(T=6.5\) months and censoring would occur at \(C=10\) months. Calculate the recorded quantities and describe the process.

Recorded time and indicator. The follow-up time is \(Y=\min(6.5,10)=6.5\) months. Since \(T\leq C\), the event indicator is \(\delta=1\).

Event process. Substituting into the definition gives \(N(t)=I(t\geq6.5,\ \delta=1)=I(t\geq6.5)\). Thus \(N(t)=0\) before 6.5 months and \(N(t)=1\) at and after 6.5 months. Its jump is \(\Delta N(6.5)=1-0=1\).

Censoring process. Since \(\delta=1\), \(N^C(t)=I(Y\leq t,\delta=0)=0\) for all \(t\). Censoring does not create a jump in the event process, and the hypothetical later censoring time does not create an observed censoring jump after the event has ended follow-up.

Worked Example: Follow-Up Ends Before the Event Is Observed

Suppose a hypothetical participant is censored at \(C=4\) months, and no event has been observed by that time. The event time \(T\) is unknown. Find the recorded quantities and the two process paths.

Because follow-up ends at 4 months without an observed event, the recorded time is \(Y=4\) months and \(\delta=0\). The data do not reveal the participant’s event time; it would be incorrect to set \(T=4\) months.

For every \(t\geq0\), the event process is \(N(t)=I(Y\leq t,\delta=1)=0\). In particular, it has no jump at 4 months. The censoring process is \(N^C(t)=I(Y\leq t,\delta=0)=I(t\geq4)\). It is zero before 4 months and one at and after 4 months, so its jump is \(\Delta N^C(4)=1\).

For example, at \(t=3\) months, \(N(3)+N^C(3)=0\), which equals \(I(4\leq3)=0\). At \(t=5\) months, the sum is 1, which equals \(I(4\leq5)=1\). The recorded history identifies the censoring endpoint, not what would have happened after it.

Worked Example: Reading Process Values Across Time

Consider three hypothetical participants. Their records are: A, event observed at 2 months; B, censored at 3 months; and D, event observed at 5 months. For each participant, calculate \(N(t)\) and \(N^C(t)\) at \(t=2.5\) and \(t=4\) months.

For A, \(Y=2\) and \(\delta=1\). At both evaluation times, \(t\geq2\), so \(N(2.5)=N(4)=1\), while \(N^C(2.5)=N^C(4)=0\).

For B, \(Y=3\) and \(\delta=0\). At 2.5 months, follow-up has not ended, so both processes are 0. At 4 months, censoring has occurred: \(N(4)=0\) and \(N^C(4)=1\).

For D, \(Y=5\) and \(\delta=1\). At both 2.5 and 4 months, the event has not yet occurred, so \(N(t)=0\) and \(N^C(t)=0\).

At 2.5 months, the sums \(N(t)+N^C(t)\) for A, B, and D are 1, 0, and 0. These equal \(I(Y\leq2.5)\) for their respective follow-up times \(Y=2,3,5\). At 4 months, the sums are 1, 1, and 0, again matching \(I(Y\leq4)\). The step functions retain the ordering and timing of endpoints, not just the final event indicators.

Why the Paths Are Right-Continuous

The path property can be checked directly rather than assumed. For an observed event at \(u=Y\), the process is \(N(t)=I(t\geq u)\). For any \(t<u\), there is a sufficiently small right-hand neighborhood of \(t\) that remains before \(u\), so the process is zero there. At \(t=u\), its value and all values immediately to the right are one. For \(t>u\), its value and nearby right-hand values are also one. Hence \(N(t)=\lim_{s\downarrow t}N(s)\) at every \(t\). The same argument applies to \(N^C(t)=I(t\geq c)\) for an observed censoring time \(c\); an identically zero process is right-continuous as well.

The path is a step function because the event record changes only at its observed endpoint. Its jump size is obtained by subtracting the value just before the endpoint from the value at the endpoint. For an observed event at \(u\), \(N(u-)=0\) and \(N(u)=1\), giving \(\Delta N(u)=1\). For censoring at \(c\), \(N(c-)=N(c)=0\), giving \(\Delta N(c)=0\), while \(N^C(c-)=0\) and \(N^C(c)=1\). These statements encode the endpoint type without treating censoring as a failure.

Scope, Checks, and Common Errors

The process representation is useful because it preserves the timing and type of an observed endpoint. A pair \((Y,\delta)\) is a compact record; \(N(t)\) and \(N^C(t)\) make explicit when the event or censoring endpoint occurs. This form is convenient when later methods refer to event counts over time. It does not, on its own, supply a probability model, an estimate, or a claim about the relationship between event and censoring times.

The definition assumes exact endpoint times and observation from the chosen time origin. With interval censoring, the event is known only to lie within an interval, so a single exact event-time jump cannot be identified from the record. With delayed entry, the history is not observed from time 0 and that feature must be represented. If event and censoring times can tie, the convention must be stated; changing it can change which process jumps at the tied time.

A frequent error is to put a jump in \(N(t)\) at every end of follow-up. That treats censoring as if the event had occurred. The correction is to use the event indicator: \(N(t)=I(Y\leq t,\delta=1)\). A second error is to infer an event time equal to the censoring time for a censored subject. Censoring says only that no event was observed by the censoring time; the event time remains unknown. Finally, writing a process that jumps only for times strictly greater than the event time would fail the specified right-continuous convention: the event is included at its time \(u\), through \(I(t\geq u)\).

Key takeaway: For a single terminal event observed from a fixed origin, the event process jumps by one at the observed event time and does not jump at censoring. A separate censoring process can mark the end of follow-up, keeping the event history distinct from its observation limit.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. A hypothetical subject has an event at 7 months and censoring time 9 months. What are \(Y\) and \(\delta\), and when does \(N(t)\) jump?
  2. A subject is censored at 2.5 months without an observed event. What are \(N(2.5)\) and \(N^C(2.5)\) under the stated convention?
  3. Why is the event process right-continuous when the event occurs at time \(u\)?
  4. At what times can the identity \(N(t)+N^C(t)=I(Y\leq t)\) be used, including at the endpoint itself?

Solutions. (1) \(Y=\min(7,9)=7\) months and \(\delta=1\); \(N(t)=I(t\geq7)\), so it jumps by 1 at 7 months. (2) Here \(Y=2.5\) and \(\delta=0\), so \(N(2.5)=0\) and \(N^C(2.5)=1\); censoring is counted at its endpoint. (3) The process equals \(I(t\geq u)\): its value at \(u\) is already 1 and agrees with values immediately to its right, while before \(u\) it remains 0 until the jump. (4) The identity holds for every \(t\geq0\), including \(t=Y\), because the endpoint is included by the \(\leq\) convention in both process definitions.

Clinical Biostats