Why the Clock Matters
A recurrent-event record contains more than a list of event counts. It also contains information about when events occur, and “when” depends on the time origin. If the scientific question concerns how event occurrence changes with duration since enrollment, a natural choice is to start each participant’s clock at study entry and let it run continuously. An event occurring after a participant has already had several events is still located on that same elapsed-time scale.
This is the total-time clock. It provides a common within-person scale for event occurrence: time zero is that participant’s study entry, and time \(t\) means \(t\) units of elapsed time after entry. A participant’s calendar entry date can differ from another’s, but both are measured from their own entry.
For clarity, this tutorial uses continuous time measured in days in the examples. The same indexing works in other units, such as weeks or years, provided event times and follow-up durations use the same unit. If a participant experiences \(m_i\) events during observed follow-up, their ordered event times are \(T_{i1},\ldots,T_{im_i}\), usually with \(T_{i1}<\cdots<T_{im_i}\). When exact ties are possible, they can be recorded as tied times rather than forced into an artificial order.
Indexing Events and Observation
A convenient summary of a participant’s recurrent-event history is the counting process \(N_i(t)\): the number of that participant’s events recorded by total time \(t\). With observed event times \(T_{ij}\), it can be written as
Here \(I(\cdot)\) equals 1 when its condition is true and 0 otherwise. The formula counts events without changing the time coordinate after any event. For example, if a participant’s events occur at days 18 and 63 after entry, then \(N_i(20)=1\) and \(N_i(70)=2\). Day 63 remains day 63 on the study-entry clock; it is not recoded as day 45 just because 45 days elapsed after the first event.
At total time \(t\), the basic observed risk set consists of participants still under observation immediately before \(t\), subject to whatever eligibility rules the analysis defines. In a simple cohort in which everyone enters at time zero and is observed until censoring at \(C_i\), this is the set of participants whose follow-up has not ended before \(t\). A recurrent event by itself does not mean follow-up has ended. An analysis may impose additional eligibility conditions, but the clock still indexes time since entry.
The distinction between observation and eligibility is important. A participant may be observed at day 60 after entry and therefore available for an analysis at total time 60, even if they have already had events. Whether that participant belongs in a particular model’s risk set can depend on the model’s target and rules. The total-time clock specifies the time coordinate; it does not, by itself, settle every risk-set decision.
Worked Example: Converting Dates to Total Time
Suppose three hypothetical participants enter a study on January 1, 2025, and all dates are in that non-leap year. Participant A has events on February 15 and April 1 and is censored on May 1. Convert the dates to total-time event and censoring times.
Step 1: Fix the origin and units. Set January 1, 2025, to day 0, and measure elapsed time in days by subtracting the entry date from each later date.
Step 2: Convert the first event date. January 1 to February 1 is 31 days, and February 1 to February 15 is 14 days. Thus the first event is at \(31+14=45\) days after entry: \(T_{A1}=45\).
Step 3: Convert the second event date. January 1 to April 1 is \(31+28+31=90\) days in 2025. Thus \(T_{A2}=90\).
Step 4: Convert censoring. January 1 to May 1 is \(31+28+31+30=120\) days. Therefore \(C_A=120\), and both events are observed because \(45\le120\) and \(90\le120\).
The resulting history is \(T_{A1}=45\), \(T_{A2}=90\), and \(C_A=120\), all in days since entry. The year is stated because leap years change the date differences.
Risk Sets on the Total-Time Scale
The total-time risk set is formed by asking who is still observed at a common elapsed duration after entry. For a basic recurrent-event process, a participant with an earlier event can remain under observation and contribute later follow-up. For instance, someone followed to day 80 is still observed at total time 50 even if they experienced an event on day 30. Whether a particular analysis includes that person at day 50 depends on its eligibility definition, not on resetting the clock.
The translation from calendar time to total time also explains why participants entering on different dates can be compared at the same value of \(t\). For participant \(i\), calendar time \(s\) corresponds to total time \(s-E_i\). Thus a calendar date is not itself a common total-time value across participants.
Worked Example: Who Is Observed at a Given Total Time?
Consider three hypothetical participants who all enter at their own time zero. Their observed event times and censoring times, in days since entry, are: A has events at 20 and 55 and is censored at 70; B has events at 35 and 60 and is censored at 80; C has an event at 50 and is censored at 65. Assume there is no other loss of observation and that, for this illustration, all participants remain eligible for the recurrent-event process after an event. Find the observed risk set at day 40 and the event history through day 60.
Risk set at day 40. Each censoring time is at least 40: \(70\ge40\), \(80\ge40\), and \(65\ge40\). Therefore the observed risk set just before day 40 is \(\{A,B,C\}\). B has already had an event at day 35, but remains observed and eligible under the stated assumption.
Event history through day 60. A’s events at 20 and 55 contribute two events by day 60. B’s events at 35 and 60 also contribute two, including the event at day 60. C’s event at 50 contributes one. Consequently, \(N_A(60)=2\), \(N_B(60)=2\), and \(N_C(60)=1\).
Risk set immediately before day 60. All three censoring times exceed 60, so all three are observed just before that time. C’s event at day 50 does not remove C from observation in this example. At exactly day 60, B’s event is recorded; conventions for whether the event-time subject is described as “at risk at \(t\)” or “at risk immediately before \(t\)” should be stated clearly when needed.
A useful justification for this indexing is direct: subtracting the same participant-specific entry time from every event date preserves event order and elapsed-time differences. If \(S_{i1}<S_{i2}\), then \(S_{i1}-E_i<S_{i2}-E_i\), and \((S_{i2}-E_i)-(S_{i1}-E_i)=S_{i2}-S_{i1}\). Thus the transformation locates events relative to entry without changing the amount of calendar time between them. It does not make participants’ calendar dates equal; rather, it places their follow-up histories on the same kind of within-person scale.
Assumptions, Interpretation, and Checks
Choosing a total-time clock is a definition of the time axis, not a claim that a particular statistical model is correct. Its use relies on the following data and design conditions for the stated interpretation:
- Entry is meaningful and recorded. Study entry supplies the time origin for each participant, and date or time discrepancies are not large enough to alter the intended ordering or elapsed durations.
- Event times use a consistent convention. Recurrent events are recorded on a compatible scale, and the event-order labels correspond to the participant’s actual sequence when events are distinct.
- Follow-up is represented accurately. Censoring time denotes the end of observed follow-up, so events after that time are not treated as observed events.
- The clock matches the question. The analysis is intended to relate event occurrence to duration since entry, rather than to time since the most recent event or a shared calendar date.
In a model that uses this scale, time dependence is indexed by elapsed time since entry. A generic event intensity may be described as a conditional event rate at total time \(t\), given the event and covariate history just before \(t\). Its interpretation is a rate per unit of elapsed follow-up time for the specified history and covariates. This description does not assert that event rates are constant over time or that participants have identical event histories.
Diagnostics begin with the event-time records themselves. Check that each event time is nonnegative, that every observed event time falls within that participant’s follow-up, and that the date-to-duration conversions are consistent. Tabulate event counts and follow-up by elapsed-time intervals; an implausible pile-up at time zero, a sudden drop in follow-up not explained by censoring, or reversed event ordering can signal coding errors. Compare records against source dates when possible, and specify how same-day events and event/censoring ties are handled.
These checks do not establish that censoring is noninformative or validate a model’s functional form. Those are separate issues. They do help catch a particularly consequential clock error: mixing calendar dates for some participants with durations since entry for others. Such a mistake can put records on incompatible axes and create incorrect event ordering or risk-set membership.
Worked Example: Same Calendar Date, Different Total Times
Two hypothetical participants are studied in 2025. A enters on February 1 and has an event on March 15. B enters on February 20 and has an event on March 15. Compute both total-time event times, using elapsed days and the non-leap year 2025.
For A, February 1 to March 1 is 28 days, and March 1 to March 15 is 14 days. Therefore A’s event is at \(28+14=42\) days after entry.
For B, February 20 to March 1 is 9 days, and March 1 to March 15 is 14 days. Therefore B’s event is at \(9+14=23\) days after entry.
Both events occurred on the same calendar date, but their total-time values are 42 and 23 days. On a total-time scale, these are different durations since entry. A shared calendar date is not a shared point on the study-entry clock.
Choosing This Clock and Common Pitfalls
The chief alternative clock for recurrent events measures time since the previous event, restarting the time origin after each event. That is a different question and a different indexing choice; it is treated separately in the material on gap-time clocks. Total time is suitable when elapsed duration since study entry is the meaningful time coordinate, for example when participants may experience changes in event occurrence as their follow-up progresses, regardless of how recently an event occurred.
Total time has limitations. If risk is driven primarily by time since the previous event, a total-time scale may not directly represent that mechanism. If entry dates differ and the scientific question concerns calendar-period effects, elapsed time since entry alone does not encode calendar time; calendar time may need separate representation. Also, a clock choice does not resolve dependence among recurrent events, informative censoring, or confounding. Those require appropriate estimands, models, and assumptions.
Common mistake: After a participant’s first event at day 20, a second event 35 days later is recorded at total time 35. That reasoning has silently restarted the clock. The correction is to retain the original entry origin: the second event occurs at day \(20+35=55\) after entry. Under total time, event order is an index attached to event times, not a series of new time origins.
A second mistake is to treat every participant’s calendar date as if it were the same total-time value. The March 15 example shows why that fails: total time is calculated from each individual’s entry date. Always make the origin explicit, calculate durations using a consistent unit, and verify them against follow-up limits.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- A participant enters at day 0, has events at days 12 and 47, and is followed through day 60. What is the total-time value of the second event, and what is \(N(50)\)?
- In a non-leap year, a participant enters on January 1 and has an event on March 1. Using elapsed days, what is the total-time event value?
- Participants A and B are both observed through day 30. A had an event on day 10; B has not yet had an event. Under a basic recurrent-event setup in which prior events do not end observation or eligibility, who is observed just before day 30?
- State one scientific situation in which total time may be less directly aligned with the question, and name the alternative clock that measures elapsed time since the previous event.
Solutions. 1. The second event is at total time 47, because the clock remains anchored at entry. Both events have occurred by day 50, so \(N(50)=2\). 2. January 1 to March 1 in a non-leap year is \(31+28=59\) days, so the event time is 59 days. 3. Both A and B are observed just before day 30; A’s earlier event does not end follow-up under the stated setup. 4. If event occurrence is thought to depend chiefly on how long it has been since the most recent event, the gap-time clock is more directly aligned with that duration.