Why Model Time Since the Last Recurrence?
For recurrent events, the time since a person’s last event can matter as much as the time since study entry. A recurrence may change the risk of another event, and a model based only on time since entry does not represent that reset directly. A gap-time model uses the elapsed time since the preceding recurrence as the clock for the next one. When a terminal event occurs, such as death, the person is no longer at risk for further recurrences; the final observed gap is therefore incomplete rather than an event-free period extending indefinitely.
Here the recurrence hazard is also linked to latent biomarker effects: subject-specific random effects in the longitudinal model can be associated with recurrence risk. This allows the event model to use features of the underlying biomarker trajectory while accounting for measurement error. The association is a model-based conditional association, not evidence that changing the biomarker would cause a change in recurrence risk.
A Joint Gap-Time Model
A typical longitudinal component represents the latent biomarker trajectory as \(m_i(t)=x_i^L(t)^\mathsf{T}\beta_L+z_i(t)^\mathsf{T}b_i\), with measurements \(y_{ij}=m_i(t_{ij})+\epsilon_{ij}\). Here \(x_i^L(t)\) and \(z_i(t)\) are known covariate vectors, \(\beta_L\) is a fixed-effect vector, and \(b_i\) is a subject-specific random-effect vector. For example, the components of \(b_i\) might represent deviations in a subject’s underlying biomarker level and slope. The recurrence model uses these latent effects rather than a noisy observed measurement at a particular visit.
Let \(x_{ik}\) denote recurrence covariates, and let \(\lambda_{0k}(s)\) be the baseline hazard for the \(k\)th recurrence as a function of gap time. A flexible event-order-specific specification is:
The baseline may differ across event orders \(k\), allowing the hazard after two prior recurrences to differ from the hazard after none. The vector \(\alpha_k\) describes how the latent biomarker random effects are associated with recurrence \(k\)’s hazard. If a component of \(b_i\) measures biomarker level, its coefficient is interpreted conditionally: a one-unit increase in that latent component multiplies the recurrence hazard by \(\exp(\alpha_k)\), holding the other modeled terms fixed.
Let \(D_i\) be terminal-event time, and let \(C_i\) be censoring time. The recurrence process is observed only up to \(Y_i=\min(D_i,C_i)\). A terminal-event model can be written on calendar time as \(\lambda_{Di}(t\mid b_i)=\lambda_{D0}(t)\exp(w_i^\mathsf{T}\theta+\xi^\mathsf{T}b_i)\), where \(w_i\) contains terminal-event covariates. The gap-time recurrence clock resets after a recurrence, but the terminal-event clock in this specification continues from study entry.
Deriving the Recurrence Contribution
For recurrence \(k\), define the cumulative gap-time hazard \(\Lambda_{ik}(s\mid b_i)=\int_0^s\lambda_{ik}(u\mid b_i)\,du\). Conditional on \(b_i\), \(S_{ik}(s\mid b_i)=\exp\{-\Lambda_{ik}(s\mid b_i)\}\) is the recurrence-component (net) survival, not generally the real-world probability of no recurrence by gap time \(s\) in the presence of a competing terminal event. That real-world probability depends on both event processes. This follows because the survival function satisfies \(dS(s)/ds=-\lambda(s)S(s)\), with \(S(0)=1\); solving this differential equation gives the exponential of the negative cumulative hazard. The density of a recurrence at \(s\) is then \(\lambda_{ik}(s\mid b_i)S_{ik}(s\mid b_i)\).
Thus each completed gap contributes its event density. If the last recurrence occurs at \(T_{iN_i}\), the next gap is only observed for \(R_i=Y_i-T_{iN_i}\) time units. No next recurrence before \(Y_i\) contributes survival through that partial gap. The recurrence likelihood conditional on \(b_i\) is:
When \(N_i=0\), the product is empty and the contribution is survival through the observed first gap. The final survival factor applies whether follow-up ends at a terminal event or at censoring: it says that another recurrence was not observed before the recurrence process ended. It does not assert that the subject would remain recurrence-free after that endpoint.
If \(\delta_{Di}=1\) indicates an observed terminal event, its conditional contribution is \(\lambda_{Di}(Y_i\mid b_i)\exp\{-\int_0^{Y_i}\lambda_{Di}(t\mid b_i)\,dt\}\). If \(\delta_{Di}=0\), the contribution is terminal-event survival alone, \(\exp\{-\int_0^{Y_i}\lambda_{Di}(t\mid b_i)\,dt\}\). The joint contribution also includes the longitudinal measurement density and the random-effects density. In schematic form, the observed-data likelihood contribution is the integral over \(b_i\) of their product with \(L_{Ri}(b_i)\) and the appropriate terminal contribution. This integration is essential: the same latent effects connect the longitudinal and event information.
Worked Example: Interpreting a Latent-Effect Hazard
Suppose the baseline gap-time hazard for a recurrence is \(0.040\) per month, the fixed covariate term is zero, and the relevant latent biomarker random effect is \(b_i=0.4\). Let its association coefficient be \(\alpha=0.5\). Find the conditional recurrence hazard and the probability of no recurrence over the next five months if the hazard is constant.
The hazard is \(0.040\exp(0.5\times0.4)=0.040\exp(0.2)=0.04886\) per month. Under a constant hazard, the cumulative hazard over five months is \(0.04886\times5=0.2443\), so the no-recurrence probability is \(\exp(-0.2443)=0.7832\). Thus the recurrence probability over that interval is \(1-0.7832=0.2168\), conditional on this latent effect and on remaining under observation and at risk. This calculation does not account for a terminal event during the interval; if one occurs, it ends the recurrence risk process.
Worked Example: Density for Two Completed Gaps
Consider a subject with two recurrences, no covariate or latent-effect contribution, and constant event-order-specific hazards \(\lambda_{i1}=0.040\) per month and \(\lambda_{i2}=0.100\) per month. The observed gap times are three and five months. Calculate the likelihood contribution from these two completed gaps.
For a constant hazard \(\lambda\), the event density at gap \(g\) is \(\lambda\exp(-\lambda g)\). The first gap contributes \(0.040\exp[-0.040(3)]=0.0354768\) per month. The second contributes \(0.100\exp[-0.100(5)]=0.0606531\) per month. Multiplying gives \(0.0354768\times0.0606531=0.0021518\), or approximately \(0.002152\ \text{per month}^2\). This is a joint event-time density, not the probability of observing exactly those two continuous gap times.
When a Terminal Event Ends Recurrence Follow-Up
Suppose the same subject’s recurrences occur at calendar months 3 and 8, followed by a terminal event at month 11. The first two completed gaps are 3 and 5 months, and the final partial gap is 3 months. With the preceding hazards and a third-gap hazard of \(0.080\) per month, the recurrence contribution is:
The final factor is survival over the three observed months after recurrence 2. There is no third recurrence-event density, because the terminal event occurred before a third recurrence. If the terminal hazard is a constant \(0.030\) per month, the terminal contribution is \(0.030e^{-0.030(11)}=0.02157\) per month. The product of these two conditional event-process contributions is approximately \(0.00003652\ \text{per month}^3\), before including longitudinal measurements or integrating over random effects. It is a likelihood density, not a probability for the exact event times.
This example also emphasizes the different time scales: the final recurrence survival is evaluated over a three-month gap, while terminal-event survival is evaluated over eleven months from study entry. Treating the terminal event as ordinary censoring for recurrence is appropriate for the recurrence component’s risk interval, but its terminal-event contribution must still be included when the terminal event is observed.
Diagnostics, Alternatives, and Limitations
A gap-time model is useful when recurrence risk plausibly depends on time since the most recent event, such as when an event is followed by recovery or a renewed period of elevated risk. Its fit should be assessed rather than inferred from the clock choice. Examine whether predicted gap-time survival or recurrence patterns match observed patterns across event orders and relevant covariate groups. Check the adequacy of each baseline hazard, the proportional-hazards form of the latent-effect association, and the longitudinal and random-effects distributions. Sparse later recurrences can make event-order-specific baselines and associations unstable. Convergence problems, extreme random-effect estimates, or large changes under reasonable baseline specifications are warnings to investigate.
The main alternative clocks encode different questions. In the Andersen–Gill approach, the hazard is indexed by time since study entry while a subject is at risk, and recurrent events are represented through a counting-process intensity. An event-order-specific calendar-time model can allow different hazards by recurrence number but still measures time from study entry. A gap-time model instead measures elapsed time from the preceding event. These approaches are not interchangeable: each encodes a different risk-time scale and should be chosen to match the scientific process and observation scheme.
The latent-effect link allows the longitudinal and recurrence components to be associated through shared subject-specific trajectory features. It does not make the association causal, and it relies on the chosen random-effects and hazard specifications. A single gap-time scale may be inadequate if risk depends on both time since the last recurrence and calendar time, or if intervention and other time-varying covariates alter risk. The model also depends on the assumption that recurrence risk ends at the terminal event; after death, for example, further recurrences are not merely unobserved but impossible. Modeling the terminal process jointly is important when terminal-event occurrence is associated with latent effects or recurrence history.
Common pitfall: A tempting calculation is to multiply event densities for every observed gap and stop at the final recurrence, even when the subject is followed afterward. That omits the information that no next recurrence occurred during the remaining at-risk time. The correction is to include final-gap survival up to \(Y_i\); if a terminal event ends follow-up, use only the interval from the last recurrence to that event for the recurrence survival factor, and include the terminal-event contribution separately.
Check Your Understanding
Try each question, then compare your reasoning with the short solutions below.
- A subject has recurrences at months 2 and 7. What are the two gap times, and what is the gap time at risk after the second recurrence if follow-up ends at month 10?
- With a constant gap-time hazard of \(0.05\) per month, what is the probability of no recurrence over four months, conditional on remaining at risk?
- Why does an observed terminal event contribute recurrence survival through the last partial gap but not a recurrence-event density at the terminal time?
- What is the distinction between an event-order-specific calendar-time hazard and an event-order-specific gap-time hazard?
- Why should a joint model integrate over \(b_i\) instead of substituting an estimated subject-specific random effect and treating it as known?
Solutions. (1) The gaps are \(2-0=2\) months and \(7-2=5\) months. The final partial gap is \(10-7=3\) months. (2) The probability is \(\exp[-0.05(4)]=\exp(-0.2)=0.8187\). (3) The terminal event ends the recurrence risk process before another recurrence is observed, so the recurrence component records no recurrence during the partial gap. The terminal event has its own hazard contribution in the joint likelihood. (4) Both may vary by recurrence number, but the calendar-time hazard uses time since study entry; the gap-time hazard uses time since the preceding recurrence. (5) The random effect is latent and uncertain. Integrating over its distribution accounts for that uncertainty and appropriately combines longitudinal and event information.