Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Delayed Entry in Competing-Risks Joint Models

Competing Risks and Recurrent Events · Tutorial 421 of 697

Delayed Entry in Competing-Risks Joint Models

Form and interpret the delayed-entry likelihood for competing risks, including the selection of random effects among people who survive to enter observation.

Advanced 13 min read

What You'll Learn

  • Define the event-free survival probability across all competing causes.
  • Derive the conditional event and censoring contributions after delayed entry.
  • Distinguish conditioning on entry given random effects from integrating over the selected entrant population.
  • Combine longitudinal measurements with delayed-entry event data in a joint likelihood.
  • Identify assumptions, diagnostics, and common errors in left-truncated competing-risks analyses.

Why Delayed Entry Changes the Likelihood

In many studies, follow-up does not begin at the time origin relevant to the event process. A participant may become eligible at time zero but enter the study later, after surviving without any event. Such a participant is included only because they remained event-free until their entry time. In a competing-risks joint model, that condition concerns every event cause, not just the cause eventually observed.

The time origin must remain the scientific origin of the modeled event process. If someone enters at time \(L_i\) and experiences cause \(k\) at time \(t_i>L_i\), the likelihood must reflect survival free of all causes from time zero to entry, conditional on inclusion. Simply treating \(L_i\) as a new time zero generally changes the model and discards information about the original time scale.

Definition: Delayed entry (or left truncation) occurs when a subject is observed only if they remain event-free until an entry time \(L_i\). A competing-risks joint likelihood must condition on surviving without any event cause to \(L_i\), while retaining the event-time origin used by the cause-specific hazards.

Cause-Specific Event Contributions

Suppose there are \(K\) mutually exclusive event causes. Let \(b_i\) denote subject \(i\)'s shared random effects, and let \(\lambda_{ik}(t\mid b_i)\) be the cause-\(k\) hazard at time \(t\), conditional on those random effects and the modeled covariates. The total hazard of any event is the sum of the cause-specific hazards:

$$ \lambda_{i\cdot}(t\mid b_i)=\sum_{k=1}^{K}\lambda_{ik}(t\mid b_i), \qquad S_i(t\mid b_i)=\exp\left\{-\int_0^t \lambda_{i\cdot}(u\mid b_i)\,du\right\}. $$

Here \(S_i(t\mid b_i)\) is the probability of remaining free of all event causes through time \(t\), conditional on \(b_i\). For an exact event of cause \(k\) at time \(t_i\), the event-time density from the origin is \(S_i(t_i\mid b_i)\lambda_{ik}(t_i\mid b_i)\). For a right-censored observation at time \(C_i\), the event-process contribution is \(S_i(C_i\mid b_i)\).

Conditional on surviving to entry, the event contribution for an exact cause-\(k\) event is therefore \(\{S_i(t_i\mid b_i)/S_i(L_i\mid b_i)\}\lambda_{ik}(t_i\mid b_i)\). For censoring at \(C_i\), it is \(S_i(C_i\mid b_i)/S_i(L_i\mid b_i)\). These are conditional contributions after entry; they do not say that the subject’s event-time clock began at \(L_i\).

$$ \frac{S_i(t_i\mid b_i)}{S_i(L_i\mid b_i)} \lambda_{ik}(t_i\mid b_i) = \exp\left\{-\int_{L_i}^{t_i}\sum_{r=1}^K\lambda_{ir}(u\mid b_i)\,du\right\} \lambda_{ik}(t_i\mid b_i). $$

The survival in this expression is over the interval from entry to the observed time, and includes hazards for all causes. For a censored subject, replace \(t_i\) by \(C_i\) and omit the cause-specific hazard factor.

Worked Example: An Exact Event After Entry

Suppose a hypothetical subject enters at \(L_i=2\) years. Given their random effects, the cause-1 hazard is constant at \(0.07\) per year and the cause-2 hazard is constant at \(0.03\) per year. A cause-1 event occurs at \(t_i=5\) years. Find the event contribution conditional on entry.

The total hazard is \(0.07+0.03=0.10\) per year. Survival from entry to the event time is \(\exp\{-0.10(5-2)\}=\exp(-0.30)\). Thus the cause-1 event density is \(0.07\exp(-0.30)=0.0518573\), or 0.05186 per year to five decimal places.

This is a density for an event of cause 1 at the specified time, conditional on being event-free at year 2. The cause-2 hazard contributes to the total hazard in the exponential because a cause-2 event would also have ended event-free follow-up.

Conditioning When Random Effects Are Integrated Out

The conditional expression above is for fixed \(b_i\). In a joint model, random effects are usually unobserved and integrated over their population distribution \(p(b_i)\). A crucial point is that the random-effects distribution among entrants is generally not the original population distribution. Values of \(b_i\) associated with higher event risk are less likely to survive until \(L_i\).

Let \(Y_i\) denote the subject’s longitudinal measurements, and let \(f(Y_i\mid b_i)\) be their longitudinal likelihood conditional on the random effects. Assume the longitudinal and event processes are conditionally independent given \(b_i\) and covariates, and that the measurement process is appropriately handled. Let \(\tilde T_i\) be the observed event or censoring time, with \(\delta_i=k\) for an event of cause \(k\) and \(\delta_i=0\) for right censoring. The conditional likelihood contribution given entry at \(L_i\) is

$$ L_i^{\mathrm{cond}} = \frac{ \displaystyle\int p(b_i) f(Y_i\mid b_i) \left[ S_i(\tilde T_i\mid b_i) \prod_{k=1}^{K}\lambda_{ik}(\tilde T_i\mid b_i)^{I(\delta_i=k)} \right]\,db_i }{ \displaystyle\int p(b_i)S_i(L_i\mid b_i)\,db_i }. $$

For a censoring observation, all hazard exponents are zero, leaving the survival term. For an event of cause \(k\), exactly one hazard factor appears. The denominator is the marginal probability of surviving event-free to entry. The longitudinal likelihood belongs in the numerator because the observed measurements are part of the entrant’s observed data.

Equivalently, define the random-effects distribution among entrants by \(p(b_i\mid T_i>L_i)=p(b_i)S_i(L_i\mid b_i)/\int p(b_i)S_i(L_i\mid b_i)\,db_i\). Then the event contribution after entry is integrated against this selected distribution; if longitudinal data are also used, they update it further. This identity explains why it is generally wrong to integrate a fixed-\(b_i\) conditional event contribution against the unselected population distribution \(p(b_i)\).

Worked Example: Entry Selects the Random-Effects Distribution

Consider a hypothetical population with two equally likely random-effect groups, low risk and high risk. Their cause-specific hazards are constant: in the low-risk group, \((\lambda_{i1},\lambda_{i2})=(0.02,0.03)\) per year; in the high-risk group, they are \((0.06,0.09)\) per year. A subject enters at year 2 and has a cause-1 event at year 4. First calculate the distribution of risk groups among entrants, then the conditional event density.

The total hazards are \(0.05\) and \(0.15\) per year. The population probability of surviving to entry is \(0.5e^{-0.05(2)}+0.5e^{-0.15(2)} =0.5(0.904837)+0.5(0.740818)=0.822828\). Thus the probability of belonging to the high-risk group among entrants is \(0.5e^{-0.30}/0.822828=0.4502\); the low-risk probability is \(0.5498\).

Given entry, the cause-1 event density at year 4 is \(0.02e^{-0.05(4-2)}=0.01810\) per year for the low-risk group, and \(0.06e^{-0.15(4-2)}=0.04445\) per year for the high-risk group. Averaging with the entrant probabilities gives \(0.5498(0.01810)+0.4502(0.04445)=0.02996\) per year.

Using the original 50:50 group probabilities for this final average would ignore the selection that occurred before entry. The change in group weights is a direct consequence of conditioning on event-free survival to year 2.

Adding Longitudinal Measurements

Longitudinal measurements can provide information about \(b_i\), so a joint likelihood uses both those measurements and the entry-conditioned event data. One convenient factorization first weights \(b_i\) by the chance of reaching entry, then by the longitudinal likelihood. In particular, after observing \(Y_i\), the random-effects weights are proportional to \(p(b_i)S_i(L_i\mid b_i)f(Y_i\mid b_i)\). This is not the same as conditioning on entry alone, nor is it generally the same as using \(p(b_i)f(Y_i\mid b_i)\) without the survival-to-entry factor.

Worked Example: A Marker Measurement Updates the Entrant Weights

Continue the hypothetical two-group setting, with entry at year 2 and a cause-1 event at year 4. Suppose a marker measured after entry has distribution \(Y_i\mid\text{low risk}\sim N(10,2^2)\) and \(Y_i\mid\text{high risk}\sim N(14,2^2)\), and the observed marker is 13. Assume the measurement and event processes are conditionally independent given group. Calculate the group weights after the marker and the event density conditional on entry and this measurement.

The normal densities at 13 are \(f(13\mid\text{low})=(1/(2\sqrt{2\pi}))e^{-9/8}=0.06476\) per marker unit and \(f(13\mid\text{high})=(1/(2\sqrt{2\pi}))e^{-1/8}=0.1760\) per marker unit. Including equal population weights and survival to entry, the unnormalized weights, calculated using the unrounded normal densities, are approximately \(0.0292981\) for low risk and \(0.0652041\) for high risk. Their sum is approximately \(0.0945022\), so the high-risk weight after entry and the marker is approximately \(0.0652041/0.0945022=0.6900\), with low-risk weight \(0.3100\).

The event density conditional on entry and the marker is therefore \(0.3100(0.01810)+0.6900(0.04445)=0.03628\) per year. The marker shifts the entrant weights toward high risk, but survival to entry still appears in the weights. For completeness, the conditional marker density among entrants is approximately \(0.0945022/0.822828=0.1149\) per marker unit, so the joint conditional density of this marker and event is approximately \(0.1149(0.03628)=0.00417\) per marker unit-year.

Assumptions, Diagnostics, and Alternatives

The likelihood requires a clear event-time origin and correctly specified cause-specific hazards over the relevant time scale. It assumes that inclusion follows the stated survival rule: subjects enter observation only after remaining free of every event cause through \(L_i\). Conditional on modeled covariates and random effects, the entry mechanism must not carry additional information about future event outcomes that the likelihood ignores. If entry is related to unmodeled risk, or if the process determining entry is itself informative, it may need to be modeled or addressed with a justified sampling design.

The event/censoring contribution also relies on appropriate right-censoring assumptions: conditional on the model variables, censoring should not convey unmodeled information about the event time or cause. The joint likelihood assumes the specified dependence between the longitudinal and event processes is adequate; conditional independence given random effects is a modeling assumption, not an automatic fact. Measurement times and missingness must likewise be handled consistently with the assumed longitudinal model.

Useful checks include verifying that every event or censoring time exceeds its entry time, confirming that the total hazard sums across all modeled causes, and checking that the survival denominator uses the subject’s actual entry time. Inspect entry times and risk-set construction for accidental time resets. Compare estimates under plausible alternative random-effects or hazard specifications, and assess whether fitted survival probabilities at entry are credible. Very late entry, sparse causes, or little longitudinal information can make the selected random-effects distribution weakly identified or numerically difficult to integrate.

A standard delayed-entry survival analysis conditions each subject’s risk contribution on being event-free at entry. The joint model adds longitudinal information and integrates over shared random effects; it does not remove the need for that conditioning. An analysis that treats entry as time zero may sometimes be appropriate if the scientific time scale truly restarts at entry, but that is a different model. Merely omitting the survival-to-entry conditioning is not an equivalent alternative: it treats the observed entrants as though they were a random sample from the original population.

  • Common mistake: “The participant entered at year 2, so I can use \(S_i(t_i\mid b_i)\lambda_{ik}(t_i\mid b_i)\) and ignore earlier survival.” This is the event density from the origin, not the event contribution conditional on selection into observation at year 2.
  • Correction: For fixed random effects use \(S_i(t_i\mid b_i)/S_i(L_i\mid b_i)\) times the cause-specific hazard. After integrating over random effects, account for the survival-selected distribution among entrants, as in the numerator-over-denominator likelihood.
  • Another pitfall: Using only the hazard for the observed cause in the survival exponent. The exponent must use the total hazard across every competing cause, because any cause ends event-free survival.
Key takeaway: Delayed entry conditions the likelihood on survival free of all causes until entry. In a joint model, that survival also changes the random-effects distribution represented among observed entrants.

Check Your Understanding

Try each problem before reading the solutions below.

  1. A subject enters at year 1 and is event-free until a cause-2 event at year 4. Given their random effects, the constant cause hazards are 0.04 and 0.06 per year. Write and calculate the conditional event contribution.
  2. Why does the survival term in the cause-1 event contribution include hazards for causes 1 through \(K\)?
  3. Suppose \(b_i\) is high or low risk with equal population probability, and survival to entry is 0.8 for low risk and 0.4 for high risk. What fraction of entrants is high risk?
  4. State one assumption under which the entry process can be treated by conditioning on \(T_i>L_i\), rather than explicitly modeling how entry time was generated.

Solutions. (1) The total hazard is \(0.04+0.06=0.10\) per year. The contribution is \(0.06\exp\{-0.10(4-1)\}=0.06e^{-0.30}=0.04445\) per year. (2) Remaining event-free requires avoiding every cause; thus the survival probability is \(\exp\{-\int_{L_i}^{t_i}\sum_{r=1}^{K}\lambda_{ir}(u\mid b_i)\,du\}\). (3) The high-risk entrant fraction is \(0.5(0.4)/[0.5(0.8)+0.5(0.4)]=0.2/0.6=1/3\), approximately 0.3333. (4) One suitable assumption is that, conditional on modeled covariates and random effects, entry carries no additional information about future events or longitudinal outcomes beyond the requirement of surviving event-free to entry; otherwise the entry mechanism may need further modeling.

Clinical Biostats