Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Multiple Recurrent Event Types With Cause-Specific Intensities

Competing Risks and Recurrent Events · Tutorial 437 of 697

Multiple Recurrent Event Types With Cause-Specific Intensities

Specify multiple recurrent-event processes with their own at-risk indicators and type-specific associations to a shared longitudinal trajectory.

Advanced 12 min read

What You'll Learn

  • Define a counting process and at-risk indicator for each recurrent event type.
  • Specify cause-specific recurrent-event intensities using a shared longitudinal random effect.
  • Interpret type-specific association parameters and compare event-type intensities.
  • Derive the conditional event-process likelihood from the intensity model.
  • Check assumptions, diagnose model fit, and distinguish this approach from alternatives.

Why Model Recurrent Event Types Separately?

A participant may experience more than one kind of recurrent event, such as repeated episodes of two symptoms or repeated visits for different clinical reasons. These event types can have different baseline rates and can relate differently to a longitudinal marker. Combining them into one count process can hide those differences. A type-specific intensity model preserves them while allowing the event processes to share information about a subject’s latent longitudinal trajectory.

The key modeling choices are to define when a subject is at risk for each type, specify an intensity for each type, and state how the longitudinal process enters those intensities. The shared random effects induce dependence between event types even when their type-specific intensity formulas are distinct.

Definition: For subject \(i\) and event type \(k\), let \(N_{ik}(t)\) be the number of type-\(k\) events observed by time \(t\), and let \(Y_{ik}(t)\) equal 1 when subject \(i\) is at risk for a type-\(k\) event immediately before \(t\), and 0 otherwise. The type-specific intensity \(\lambda_{ik}(t\mid\mathcal{H}_i(t-),b_i)\) is the instantaneous event rate, conditional on the observed history \(\mathcal{H}_i(t-)\) just before \(t\) and the subject’s random effects \(b_i\). In particular, when \(Y_{ik}(t)=1\), the conditional probability of a type-\(k\) event in a short interval \([t,t+dt)\) is \(\lambda_{ik}(t\mid\mathcal{H}_i(t-),b_i)dt+o(dt)\).

At-Risk Processes and Type-Specific Intensities

Each event type has its own at-risk process because eligibility or observation can differ by type. For a recurrent event, experiencing an event does not by itself remove a subject from risk for future events of that type. The subject may remain at risk immediately, or may re-enter after a clinically specified recovery period. If a subject is not eligible for a type during an interval, the corresponding \(Y_{ik}(t)\) is zero there. At-risk rules should be defined from the study design and applied consistently, rather than inferred from the event model.

Let \(m_i(t;b_i)\) denote the subject-specific longitudinal trajectory implied by the longitudinal submodel and its random effects. A useful type-specific intensity specification is

$$ \lambda_{ik}(t\mid\mathcal{H}_i(t-),b_i) = Y_{ik}(t)\lambda_{0k}(t) \exp\left\{ \gamma_k^\mathsf{T}X_i(t)+\alpha_k m_i(t;b_i) \right\}. $$

Here \(\lambda_{0k}(t)\) is the baseline intensity for type \(k\), \(X_i(t)\) contains covariates, \(\gamma_k\) is a type-specific covariate coefficient vector, and \(\alpha_k\) is the association between the current longitudinal trajectory and the type-\(k\) intensity. In this proportional-intensity model, increasing \(m_i(t;b_i)\) by one unit multiplies the type-\(k\) intensity by \(\exp(\alpha_k)\), holding other terms fixed. The units of \(\alpha_k\) are the inverse units of the marker, so the exponential is dimensionless.

The same \(b_i\) appears in \(m_i(t;b_i)\) for every event type. This is what links the event processes through the longitudinal trajectory. The parameters \(\alpha_k\) need not be equal: a higher marker can be associated with a higher intensity for one type and a lower intensity for another. If the scientific model requires a direct shared random-effect term in addition to the trajectory value, that term must be specified explicitly; it should not be assumed to arise automatically from using \(m_i(t;b_i)\).

Worked Example: Defining Separate Risk Sets

Suppose a hypothetical subject is followed from time 0 to time 6 years. Type A events can recur throughout follow-up. The subject has type A events at years 2 and 5. Type B events are possible except during a recovery interval from year 3.5 to year 4, and one type B event occurs at year 3. Let follow-up end at year 6.

For type A, the subject remains at risk after each event, so \(Y_{iA}(t)=1\) during follow-up from 0 to 6, apart from any convention needed at the exact administrative endpoint. The event at year 2 does not set this indicator to zero thereafter. For type B, \(Y_{iB}(t)=1\) from 0 to 3.5 and from 4 to 6, and \(Y_{iB}(t)=0\) during the recovery interval. The type B event at year 3 is recorded while the subject is at risk.

The type B intensity is zero during the recovery interval because its at-risk indicator is zero, regardless of the value of its baseline intensity or marker association. The two event types therefore have different exposure time even though they are observed on the same subject.

Shared Longitudinal Effects and Interpretation

For example, suppose the longitudinal submodel has trajectory \(m_i(t;b_i)=\beta_0+\beta_1t+b_{0i}+b_{1i}t\), where \(b_{0i}\) and \(b_{1i}\) are subject-specific random intercept and slope. Substituting this trajectory into each event intensity makes both event types depend on the subject’s latent level and trajectory over time. Conditional on the random effects, each type has its own baseline and association coefficient; marginally, subjects with high latent trajectories can have systematically different rates across both types.

The coefficients describe conditional intensity associations, not causal effects. For instance, \(\exp(\alpha_k)\) is the multiplicative change in type-\(k\) intensity for a one-unit higher current marker, conditional on covariates, the random effects, and the modeled history. It is not generally the ratio of marginal event rates, because integrating over random effects changes the rate relationship and the distribution of random effects among subjects still under observation.

Worked Example: Calculating Two Type-Specific Intensities

Consider a hypothetical time at which the subject is at risk for both types, has a current marker value \(m_i(t;b_i)=1.4\) units, and has a binary treatment covariate equal to 1. Suppose the type A baseline intensity is 0.12 events per year, with treatment coefficient 0.20 and marker association \(\alpha_A=0.50\). For type B, let the baseline intensity be 0.15 events per year, treatment coefficient 0.10, and marker association \(\alpha_B=-0.45\).

For type A, the linear predictor beyond the baseline is \(0.20(1)+0.50(1.4)=0.90\). Thus

$$ \lambda_{iA}(t)=0.12\exp(0.90) =0.12(2.4596) \approx 0.2952 \quad\text{events per year}. $$

For type B, the corresponding predictor is \(0.10(1)-0.45(1.4)=-0.53\). Hence

$$ \lambda_{iB}(t)=0.15\exp(-0.53) =0.15(0.5886) \approx 0.08829 \quad\text{events per year}. $$

At this time and for these covariates, the type A intensity is about \(0.2952/0.08829=3.343\) times the type B intensity. This is a comparison of instantaneous conditional rates, not a statement that the probability of an event over an entire year is exactly the intensity. If the marker were one unit higher, holding the other terms fixed, the type A intensity would be multiplied by \(\exp(0.50)=1.649\), whereas the type B intensity would be multiplied by \(\exp(-0.45)=0.6376\).

Conditional Likelihood: Why the Intensities Matter

Assume the event processes are simple (no two events occur at precisely the same instant), have locally finite event counts, and have the specified conditional intensities. Given the random effects, the event-process likelihood for subject \(i\), up to factors that do not depend on the model parameters, is

$$ L_{Ri}(b_i) = \prod_k \left[ \prod_{j:\,t_{ikj}\le C_i} \lambda_{ik}(t_{ikj}\mid\mathcal{H}_i(t_{ikj}-),b_i) \right] \exp\left\{ -\sum_k\int_0^{C_i} \lambda_{ik}(u\mid\mathcal{H}_i(u-),b_i)\,du \right\}, $$

where \(t_{ikj}\) are the observed type-\(k\) event times and \(C_i\) is the end of observation. The event-time factors reward intensity at observed events; the exponential term accounts for the intensity accumulated over all at-risk time, including intervals without events. If \(Y_{ik}(u)=0\), the type contributes no accumulated intensity at that time.

A joint model also includes the longitudinal measurement contribution and the random-effects distribution. Under conditional independence of the longitudinal measurements and event process given \(b_i\), covariates, and the modeled history, the subject’s observed-data likelihood has the form

$$ L_i = \int L_{Li}(b_i)L_{Ri}(b_i)p(b_i)\,db_i, $$

where \(L_{Li}(b_i)\) is the longitudinal-data likelihood and \(p(b_i)\) is the random-effects density. This factorization is an assumption of the joint model, not a consequence of having written two intensity equations. If the measurement schedule itself is informative after conditioning on the modeled quantities, its observation process may also need to be modeled.

Worked Example: A Two-Type Event Likelihood

For a hypothetical subject, suppose both types are continuously at risk for 4 years and have constant intensities conditional on the subject’s random effects: \(\lambda_{iA}=0.20\) events per year and \(\lambda_{iB}=0.10\) events per year. The observed type A events occur at years 1 and 3, and one type B event occurs at year 2. Treat the intensities as fixed at these values over follow-up.

The product of the event-time intensity factors is \((0.20)^2(0.10)=0.004\). The total integrated intensity is \(4(0.20)+4(0.10)=0.80+0.40=1.20\). Therefore the event-process likelihood contribution is

$$ L_{Ri} = (0.20)^2(0.10)\exp(-1.20) = 0.004(0.3012) \approx 0.001205. $$

This is a conditional likelihood contribution given the random effects and the stated constant-intensity assumptions. The event times are included through the intensity factors, while the total exposure contributes through the integrated intensity. In a full joint model, the intensity would usually vary with time and the likelihood would then be evaluated by integrating the actual time-varying intensities.

Justification and Modeling Checks

The likelihood form follows by dividing follow-up into short intervals. Conditional on the history and random effects, an interval of width \(dt\) has probability approximately \(\lambda_{ik}(t)dt\) of a type-\(k\) event and probability approximately \(1-\sum_k\lambda_{ik}(t)dt\) of no event of any type, when the subject is at risk and simultaneous events have probability of smaller order than \(dt\). Multiplying these probabilities over intervals yields a factor of the intensity at each observed event and an exponential of minus the integrated total intensity. In the limit as the intervals shrink, this gives the displayed likelihood. Type-specific \(Y_{ik}(t)\) ensures the integrated intensity counts only eligible time.

The event types need not be marginally independent. Sharing random effects generally induces association between their event rates across subjects. The likelihood expression is conditional on the random effects and the modeled history; any additional dependence not captured by those quantities must be represented through suitable history terms or a richer joint event-process model. A simple sum of type-specific intensities describes the instantaneous rate of any event only when the event types form a mutually exclusive marked event process at each instant and the intensities use compatible risk definitions.

Useful checks include verifying the risk indicators against the event and eligibility records, plotting type-specific cumulative event counts against fitted expected counts, and examining residuals or time-rescaled inter-event gaps by type. Systematic residual patterns over time may indicate an inadequate baseline intensity; residual patterns by event order can point to event-order dependence; and remaining association between event types may signal omitted shared structure. Fit and convergence should also be checked across reasonable baseline and random-effects specifications.

Alternatives, Limitations, and Common Pitfalls

ApproachWhat it emphasizesKey distinction
Separate type-specific intensitiesDifferent rates and covariate or marker associations by event typeEach type has its own risk indicator, baseline, and association parameters
One pooled recurrent-event intensityThe rate of events considered togetherSimpler, but can conceal type differences unless type indicators and interactions are included
Separate models with type-specific frailtiesUnobserved heterogeneity for each event processMay not represent dependence through the longitudinal trajectory unless a shared component is also specified

Separate type-specific intensities are useful when the event definitions and risk periods are meaningful, and when the data contain enough events to estimate the type-specific parameters. They can be unstable for rare types or highly correlated covariates. They also rely on the longitudinal and event models being adequately specified, on the random-effects distribution being plausible, and on the conditional-independence assumptions used in the joint likelihood. A shared random effect is a structured way to capture dependence, not a guarantee that all residual dependence has been removed.

Common mistake: A student codes \(Y_{ik}(t)=0\) forever after the first type-\(k\) event because the subject is no longer at risk for a first event. That reasoning silently changes a recurrent-event model into a first-event model. For recurrent events, the subject generally returns to the type-specific risk set after an event unless the protocol specifies a recovery period or permanent ineligibility. The correct risk indicator follows the event type’s actual eligibility rule.

Key takeaway: For multiple recurrent event types, define a separate at-risk process and intensity for each type. Shared longitudinal random effects link those intensities, while type-specific baselines and association parameters preserve differences among event types.

Check Your Understanding

Answer each question, then compare with the brief solutions below.

  1. A participant is eligible for type A throughout follow-up but temporarily ineligible for type B from year 2 to year 2.5. What should happen to each at-risk indicator during that interval?
  2. If \(\alpha_B=-0.30\), what is the conditional intensity multiplier for a one-unit increase in the marker for type B?
  3. Why does a shared random effect generally make the two event types dependent even if each has a separate intensity equation?
  4. For constant intensities of 0.10 and 0.05 events per year over 3 years at risk for both types, with one event of each type, write the event-process likelihood contribution.

Solutions: (1) \(Y_{iA}(t)=1\) and \(Y_{iB}(t)=0\) during the interval; type B contributes no intensity then. (2) The multiplier is \(\exp(-0.30)=0.7408\), so the conditional type B intensity is about 26% lower per one-unit marker increase, holding other terms fixed. (3) Subjects with different shared random effects have different longitudinal trajectories, which enter both type-specific intensities; thus their event rates across types vary together marginally. (4) The event factors are \(0.10(0.05)\), and the integrated intensity is \(3(0.10)+3(0.05)=0.45\), so \(L=0.005\exp(-0.45)=0.003188\), approximately.

Clinical Biostats