Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Delayed Entry in the Joint-Model Likelihood

The Basic Joint Model · Tutorial 145 of 697

Delayed Entry in the Joint-Model Likelihood

You will learn to construct and interpret event-process likelihood contributions when subjects enter observation after the time origin, including the effect of integrating over shared random effects.

Advanced 12 min read

What You'll Learn

  • Define delayed entry using an entry time and an event or censoring time on a common time scale.
  • Derive the event and right-censoring contributions conditional on survival to entry.
  • Express the delayed-entry contribution using the cumulative hazard accumulated after entry.
  • Explain how survival to entry changes the random-effects distribution among observed entrants.
  • Check likelihood calculations for correct time origins, units, and conditioning assumptions.
  • Distinguish delayed entry from left censoring and from simply resetting the time scale.

Why Delayed Entry Changes the Likelihood

In a time-to-event study, a subject may become observable only after the time origin. For example, a participant might enter a registry several years after diagnosis, provided they are still alive at that point. Their observed follow-up begins at entry, but the event-time scale still begins at diagnosis. The subject was not at risk in the observed sample before entry, and survival to entry is part of the sampling condition.

The event-process likelihood must therefore describe what is observed conditional on having survived event-free to entry. Treating entry as if it were the time origin, or using an ordinary contribution from time zero without conditioning, generally gives the wrong likelihood. This tutorial focuses on that adjustment; the earlier material on the subject-specific hazard and survival function supplies the hazard-based ingredients.

Definition: Let \(L_i\) be subject \(i\)'s delayed-entry time, measured from the study's common time origin. Let \(T_i\) be the event time and \(C_i\) the censoring time. Write \(Y_i=\min(T_i,C_i)\) and let \(\Delta_i=1\) if the event is observed and \(\Delta_i=0\) if the subject is right-censored. A subject enters the observed risk set only if \(T_i>L_i\), and their observed time satisfies \(Y_i\ge L_i\).

In a joint model, the event hazard may depend on subject-specific random effects \(b_i\), including through a latent longitudinal trajectory. A common form is

$$ h_i(t\mid b_i)=h_0(t)\exp\{\gamma^\mathsf{T}w_i+\alpha m_i(t;b_i)\}, $$

where \(h_0(t)\) is the baseline hazard, \(w_i\) denotes event-process covariates, and \(m_i(t;b_i)\) is the latent marker value. Define the conditional cumulative hazard and survival function by

$$ H_i(t\mid b_i)=\int_0^t h_i(u\mid b_i)\,du, \qquad S_i(t\mid b_i)=\exp\{-H_i(t\mid b_i)\}. $$

All times in these definitions use the same origin. In particular, \(L_i\) is not silently redefined as zero.

The Conditional Event-Process Contribution

Given \(b_i\), the event-time density at \(Y_i\) is \(h_i(Y_i\mid b_i)S_i(Y_i\mid b_i)\). For a right-censored subject, the event-process contribution is the probability of surviving through \(Y_i\), namely \(S_i(Y_i\mid b_i)\). Both expressions must be conditioned on the subject having survived to \(L_i\).

Result: Under the specified hazard model and conditional on survival to delayed entry, subject \(i\)'s event-process contribution is
$$ L_{Ti}(b_i\mid T_i>L_i) = \frac{ \{h_i(Y_i\mid b_i)\}^{\Delta_i}S_i(Y_i\mid b_i) }{ S_i(L_i\mid b_i) } = \{h_i(Y_i\mid b_i)\}^{\Delta_i} \exp\{-[H_i(Y_i\mid b_i)-H_i(L_i\mid b_i)]\}. $$

The exponent contains only cumulative hazard after entry. For an observed event, the contribution is a density and has units of inverse time; for censoring, it is a survival probability and is dimensionless. The formula presumes \(Y_i\ge L_i\). If an observed record has \(Y_i<L_i\), it is inconsistent with the stated delayed-entry setup and should be investigated rather than accommodated by this expression.

Why the Survival Ratio Appears

The adjustment follows directly from conditional probability. For an observed event at \(Y_i\), conditional on \(b_i\), the density of the event time given survival to entry is the unconditional event density divided by the probability of surviving to entry. For censoring at \(Y_i\), the conditional probability of surviving to that time is likewise a ratio of survival probabilities.

$$ \begin{aligned} f_i(Y_i\mid T_i>L_i,b_i) &=\frac{h_i(Y_i\mid b_i)S_i(Y_i\mid b_i)}{S_i(L_i\mid b_i)},\\ P(T_i>Y_i\mid T_i>L_i,b_i) &=\frac{S_i(Y_i\mid b_i)}{S_i(L_i\mid b_i)}. \end{aligned} $$

Combining the event-density expression when \(\Delta_i=1\) with the survival expression when \(\Delta_i=0\) gives the result above. Equivalently, using \(S_i(t\mid b_i)=\exp\{-H_i(t\mid b_i)\}\), the ratio of survival probabilities is \(\exp\{-[H_i(Y_i\mid b_i)-H_i(L_i\mid b_i)]\}\). This derivation also shows why using \(S_i(Y_i\mid b_i)\) alone counts survival before entry even though the likelihood is conditional on having survived that period.

Worked Example: Constant Hazard After Delayed Entry

Suppose a hypothetical subject enters at year \(L_i=3\), is observed to have the event at year \(Y_i=5\), and has a constant hazard of \(0.12\) per year conditional on their random effects. Thus \(H_i(t\mid b_i)=0.12t\). The event time and entry time are both on the same origin, and \(Y_i\ge L_i\).

The delayed-entry event contribution is

$$ 0.12\exp\{-[0.12(5)-0.12(3)]\} =0.12\exp(-0.24) \approx 0.09440\text{ per year}. $$

The interval at risk after entry is two years, so the cumulative hazard in the exponential is \(0.12(5-3)=0.24\). The contribution is a density because the event is observed. Without the conditioning adjustment, the contribution would instead be \(0.12\exp[-0.12(5)]\), incorrectly including survival from year 0 to year 3 in a likelihood conditional on reaching entry.

Worked Example: A Right-Censored Subject

Consider a hypothetical subject who enters at year 2 and is censored at year 6, with a piecewise-constant hazard of \(0.10\) per year from year 0 through year 4 and \(0.30\) per year after year 4. Assume these hazards apply conditional on the subject's random effects. The subject is known to be event-free at entry, and the censoring is conditionally independent for the event-process contribution.

Between years 2 and 4, the cumulative hazard is \(0.10(4-2)=0.20\). Between years 4 and 6, it is \(0.30(6-4)=0.60\). The contribution is therefore

$$ \exp\{-[0.20+0.60]\} =\exp(-0.80) \approx 0.4493. $$

This is the probability, conditional on surviving to year 2, of surviving through year 6. It is dimensionless because the subject is censored rather than observed to have an event. The contribution uses the cumulative hazard after entry, including both hazard intervals, not the cumulative hazard from year 0.

Integrating Over Random Effects

The contribution just derived is conditional on \(b_i\). In a joint model, the random effects are latent, so a marginal event-process likelihood must account for their distribution. Delayed entry changes the distribution of random effects among entrants: subjects with random effects associated with higher early hazards are less likely to survive to entry.

Suppose \(f(b)\) is the random-effects density in the source population and entry time \(L\) is fixed or conditioned upon. For an event-process-only calculation, the random-effects density among entrants is proportional to \(f(b)S(L\mid b)\). Normalizing it gives \(f(b\mid T>L)=f(b)S(L\mid b)/\int f(u)S(L\mid u)\,du\). Averaging the conditional delayed-entry contribution over this entrant distribution yields

$$ \int \frac{S(Y\mid b)\{h(Y\mid b)\}^{\Delta}}{S(L\mid b)} \frac{f(b)S(L\mid b)}{\int f(u)S(L\mid u)\,du} \,db = \frac{\int f(b)S(Y\mid b)\{h(Y\mid b)\}^{\Delta}\,db} {\int f(b)S(L\mid b)\,db}. $$

The denominator is the source-population probability of surviving to entry, averaged over random effects. This marginal expression makes the selection effect explicit. In a full joint likelihood, longitudinal measurements and any modeled observation process must also be handled consistently with selection into observation; the event-process calculation alone does not specify those other factors.

Worked Example: Two Latent Hazard Groups

Suppose a hypothetical source population has two equally common latent groups. Conditional hazards are constant: \(0.05\) per year for group A and \(0.20\) per year for group B. Subjects enter only if alive at year 2. Consider the event-time density at year 4 among entrants. The same time origin is used for entry and event times.

The probabilities of surviving to entry are \(e^{-0.05(2)}=e^{-0.1}\) and \(e^{-0.20(2)}=e^{-0.4}\). The entrant group proportions are

$$ P(A\mid T>2)=\frac{0.5e^{-0.1}}{0.5e^{-0.1}+0.5e^{-0.4}} \approx 0.5744,\qquad P(B\mid T>2)\approx 0.4256. $$

For each group, the event density at year 4 conditional on surviving to year 2 is the hazard at year 4 times survival over the two post-entry years:

$$ f_A(4\mid T>2)=0.05e^{-0.05(4-2)}\approx0.04524, \qquad f_B(4\mid T>2)=0.20e^{-0.20(4-2)}\approx0.1341. $$

Weighting by the entrant proportions gives a mixture density of approximately

$$ 0.5744426(0.0452419)+0.4255574(0.1340640) \approx 0.08304\text{ per year}. $$

The displayed mixture uses the unrounded proportions and densities. If only the displayed rounded proportions and densities were multiplied, the result would be about \(0.08304\) per year; that small difference is due to rounding. The entrants contain a smaller fraction of group B than the source population because group B has the higher hazard and is less likely to survive to year 2.

Assumptions, Checks, and Alternatives

The delayed-entry contribution is appropriate when event times and entry times share a defined time scale, entry requires survival to \(L_i\), and the subject's event status is observed only from that entry point. The hazard model must describe the event process on this full time scale, including before entry, because the probability of surviving to entry determines who can be observed. For the event-process likelihood, censoring must also be conditionally independent under the model, so that a censoring time does not provide unmodeled information about the event time after conditioning on modeled quantities.

The adjustment further relies on an appropriate account of the entry mechanism. The expressions above condition on the stated survival-based eligibility and treat entry as fixed or conditioned upon. If entry time or selection depends on unmodeled event risk, covariates, or random effects beyond survival itself, this conditioning may not remove selection bias; the entry process may need explicit modeling. In particular, one should not assume that random effects among entrants retain their source-population distribution.

Useful checks include confirming \(Y_i\ge L_i\), verifying that all times use the intended origin, and checking that the cumulative hazard difference is nonnegative. A negative value of \(H_i(Y_i\mid b_i)-H_i(L_i\mid b_i)\) for \(Y_i\ge L_i\) signals a coding or model error for a nonnegative hazard. Compare the number and covariate profile of observed entrants with expectations under the assumed selection mechanism. Sensitivity to the entry assumptions matters when the probability of surviving to entry varies greatly across subjects.

Delayed entry is not left censoring. Under delayed entry, the subject is known to be event-free up to entry and then becomes at risk in the observed sample; under left censoring, an event has occurred by an observation time but its exact time is unknown. Nor is delayed entry generally handled by resetting every subject's clock to zero at entry: that changes the hazard time scale and can change the meaning of time-dependent covariates and baseline hazard. A landmark analysis can instead define a new target population and time origin at a chosen landmark, but that is a different analysis and estimand.

Common pitfall: Using \(h_i(Y_i\mid b_i)^{\Delta_i}S_i(Y_i\mid b_i)\) without dividing by \(S_i(L_i\mid b_i)\) treats a delayed entrant as though their likelihood included an observed period from time zero. The correction is to condition on survival to entry, giving \(S_i(Y_i\mid b_i)/S_i(L_i\mid b_i)\), or equivalently the cumulative hazard difference \(H_i(Y_i\mid b_i)-H_i(L_i\mid b_i)\). At the marginal level, also account for the fact that survival to entry changes the random-effects distribution among entrants.

Check Your Understanding

Try each question, then compare your reasoning with the brief solutions.

  1. A subject enters at year 1 and is censored at year 4 under a constant conditional hazard of \(0.08\) per year. What is the delayed-entry event-process contribution?
  2. For an event at \(Y_i\), explain why the contribution includes \(h_i(Y_i\mid b_i)\) but a right-censored contribution does not.
  3. With \(Y_i\ge L_i\), what does a negative value of \(H_i(Y_i\mid b_i)-H_i(L_i\mid b_i)\) suggest?
  4. Why can the source-population random-effects density not generally be used as the distribution of random effects among delayed entrants?

Solutions. (1) The contribution is \(\exp\{-0.08(4-1)\}=\exp(-0.24)\approx0.7866\), a dimensionless survival probability. (2) An observed event contributes an event-time density, which is hazard times survival; censoring contributes only the probability of surviving to the censoring time. (3) Since a hazard is nonnegative and \(Y_i\ge L_i\), cumulative hazard cannot decrease; check the time scale, integration limits, and implementation. (4) Entry requires survival to \(L_i\), so latent effects associated with greater hazard before entry are less represented. The entrant density is weighted by \(S(L_i\mid b_i)\) and then normalized.

Clinical Biostats