Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Fecal Calprotectin and Relapse in Inflammatory Bowel Disease

Case Studies · Tutorial 690 of 697

Fecal Calprotectin and Relapse in Inflammatory Bowel Disease

Learn how to connect fecal calprotectin trajectories to relapse risk while accounting for treatment changes and defining relapse clearly.

Advanced 11 min read

What You'll Learn

  • Specify a longitudinal model for repeated fecal calprotectin measurements on the log scale.
  • Link a patient’s estimated marker trajectory to their time-varying relapse hazard.
  • Interpret a current-value association in terms of a stated calprotectin contrast.
  • Distinguish treatment adjustment from a causal estimate of treatment effect.
  • Identify how relapse definitions, measurement timing, and censoring affect interpretation.

Why Relapse Definition and Marker Timing Matter

Fecal calprotectin is a stool biomarker of intestinal inflammation, commonly reported in micrograms per gram. In a study of inflammatory bowel disease (IBD), measurements may be collected repeatedly while patients are in remission, and relapse may occur between scheduled assessments. The statistical question is not simply whether one measurement differs between patients who do and do not relapse. It is how a patient’s evolving marker level relates to their risk of relapse over time, while allowing for measurement error and differences in individual trajectories.

The endpoint must be defined before fitting a model. For example, a study might define relapse as a protocol-specified clinical recurrence confirmed by a clinician, or as a prespecified combination of symptoms and treatment escalation. These are not interchangeable events. If the endpoint definition includes fecal calprotectin itself, an association between calprotectin and relapse can partly arise because the marker is built into the outcome. A useful design therefore states exactly what qualifies as relapse, how the date is assigned, and whether calprotectin contributes to that definition.

Definition: A joint model for longitudinal and time-to-event data specifies a model for repeated measurements and a model for the event hazard, then links them through shared latent patient characteristics or a feature of the patient’s latent marker trajectory. Here, the longitudinal outcome is fecal calprotectin and the event is the study-defined IBD relapse.

A Joint Model for Calprotectin and Relapse

Let \(Y_{ij}\) be the fecal calprotectin measurement for patient \(i\) at time \(t_{ij}\), measured in months from a clearly defined baseline. Because concentrations are positive and often right-skewed, consider \(Z_{ij}=\log(Y_{ij})\), where the logarithm is natural. A linear mixed model can describe the latent mean log concentration:

$$ Z_{ij}=m_i(t_{ij})+\varepsilon_{ij}, \qquad m_i(t)=\beta_0+\beta_1t+\beta_2D_i(t)+b_{0i}+b_{1i}t. $$

Here \(D_i(t)\) indicates whether a specified treatment intensification is in effect at time \(t\); the exact coding and effective date must be defined in the analysis plan. The patient-specific random intercept \(b_{0i}\) and random slope \(b_{1i}\) allow baseline levels and trends to vary. A standard working assumption is that the random effects follow a mean-zero multivariate normal distribution with covariance matrix \(G\), and that the measurement errors are independent normal variables with mean zero and variance \(\sigma^2\), conditional on the random effects and included covariates. These assumptions should be checked against the measurement scale and observed trajectory patterns.

Let \(T_i\) be time from baseline to the study-defined relapse, and let \(C_i\) be the censoring time. The observed follow-up time is \(X_i=\min(T_i,C_i)\), with event indicator \(\delta_i=1\) if relapse is observed and \(0\) if the patient is censored first. A current-value association model is:

$$ h_i(t\mid b_i)=h_0(t)\exp\{\gamma^\top W_i(t)+\alpha m_i(t)\}, $$

where \(h_i(t\mid b_i)\) is the instantaneous relapse hazard among patients still relapse-free at \(t\), \(h_0(t)\) is an unspecified baseline hazard, \(W_i(t)\) contains specified baseline or time-varying covariates, and \(m_i(t)\) is the latent log calprotectin mean. The parameter \(\alpha\) describes the association between the latent current log marker and the relapse hazard, conditional on the included covariates and the model. It is not, by itself, a causal effect of changing calprotectin.

This formulation assumes that the marker trajectory relevant to risk is adequately represented by the chosen mean function, that the hazard link is appropriate, and that the event and measurement processes are conditionally independent given the shared random effects and modeled covariates. It also requires a defensible censoring assumption: conditional on modeled information, censoring should not carry additional information about the unobserved relapse time. If visits are missed because a patient is worsening, or because a treatment change prompts extra testing, the observation process may be informative and deserves attention.

Worked Example: Translating a Trajectory Back to Calprotectin Units

Suppose a hypothetical fitted longitudinal model gives the following latent log-calprotectin prediction for one patient, with time \(t\) in months, treatment indicator \(D(t)\), and a fixed covariate \(Q=1\):

$$ m_i(t)=4.20+0.08t-0.25D_i(t)-0.10Q+0.02t. $$

Assume treatment intensification is not in effect at month 2, so \(D_i(2)=0\), and is in effect at month 6, so \(D_i(6)=1\). At month 2:

$$ m_i(2)=4.20+0.08(2)-0.25(0)-0.10(1)+0.02(2)=4.30. $$

The corresponding geometric-scale prediction is \(\exp(4.30)=73.70\ \mu\mathrm{g}/\mathrm{g}\). At month 6:

$$ m_i(6)=4.20+0.08(6)-0.25(1)-0.10(1)+0.02(6)=4.45. $$

Thus \(\exp(4.45)=85.63\ \mu\mathrm{g}/\mathrm{g}\). These are back-transformations of the modeled log-scale means, not predictions of an individual’s next noisy measurement. The positive change in the predicted level despite treatment intensification follows from all terms in the displayed model; it should not be attributed to treatment alone.

Interpreting the Link and Its Derivation

The current-value link gives a direct hazard-ratio interpretation for two latent marker levels at the same time, with the other covariates held fixed. Taking the ratio of their hazards cancels the common baseline hazard. If their latent log concentrations differ by \(\Delta\), the hazard ratio is \(\exp(\alpha\Delta)\). A one-unit increase in log concentration corresponds to multiplying concentration by \(e\), not increasing it by one microgram per gram.

Interpretation: In the current-value model, \(\exp(\alpha\Delta)\) is the conditional relapse hazard ratio for a \(\Delta\)-unit difference in latent log fecal calprotectin at the same time, for the same modeled covariate values. It describes an association under the fitted model, not an individual probability of relapse.

The justification follows directly from the hazard definition. For patients A and B at time \(t\), suppose their covariate values are equal and their latent log-marker values differ by \(\Delta=m_A(t)-m_B(t)\). Then:

$$ \frac{h_A(t)}{h_B(t)} = \frac{h_0(t)\exp\{\gamma^\top W(t)+\alpha m_A(t)\}} {h_0(t)\exp\{\gamma^\top W(t)+\alpha m_B(t)\}} =\exp\{\alpha[m_A(t)-m_B(t)]\} =\exp(\alpha\Delta). $$

This ratio is conditional on the specified model. It does not imply that intervening to lower a patient’s calprotectin by \(\Delta\) would produce that hazard change; treatment, disease severity, and other processes may affect both the marker and relapse.

Worked Example: A Hazard-Ratio Contrast

Suppose, hypothetically, that the fitted current-value association is \(\alpha=0.70\). Compare two otherwise similar patients at the same follow-up time whose latent log calprotectin levels differ by \(0.50\). The model-based hazard ratio is:

$$ \exp(0.70\times0.50)=\exp(0.35)=1.419. $$

The patient with the higher latent log level has an estimated instantaneous relapse hazard about 1.42 times that of the comparison patient, conditional on the model covariates and being relapse-free at that time. A difference of \(0.50\) on the log scale corresponds to a concentration ratio of \(\exp(0.50)=1.649\), not a difference of \(0.50\ \mu\mathrm{g}/\mathrm{g}\). This comparison does not state that either patient has a 1.42-fold probability of relapse over the entire follow-up.

For this interpretation to be meaningful, the assumed log scale, current-value link, and covariate comparison must be appropriate. A single coefficient also does not establish that the association is constant across time or treatment groups if those interactions were not modeled.

Treatment Changes, Relapse Dates, and Joint Likelihood

Treatment changes are especially important in IBD. Worsening symptoms or rising calprotectin may prompt intensification, and intensification may then alter subsequent marker values and relapse risk. Including \(D_i(t)\) can describe an adjusted association under the chosen model, but it does not remove confounding by indication automatically. Treatment timing should be recorded, the exposure definition should be explicit, and a coefficient for treatment should not be described as causal without a design and assumptions supporting causal interpretation.

A joint model combines the longitudinal and event information through the shared random effects. In schematic form, a patient’s contribution to the likelihood is obtained by integrating the product of the measurement likelihood and event-time likelihood over the random-effects distribution. For an observed event or censoring time, the event contribution conditional on the random effects is \(h_i(X_i\mid b_i)^{\delta_i}S_i(X_i\mid b_i)\), where \(S_i\) is the conditional probability of remaining relapse-free through \(X_i\). The integration matters: it accounts for uncertainty about each patient’s latent trajectory rather than treating estimated marker values as error-free.

$$ L_i=\int \left\{\prod_j f(Z_{ij}\mid b_i)\right\} h_i(X_i\mid b_i)^{\delta_i}S_i(X_i\mid b_i) \,f(b_i)\,db_i. $$

The event date also needs careful handling. If relapse is assessed only at visits, the true event may be known to have occurred between the last relapse-free assessment and the first assessment showing relapse. Assigning the first positive visit as the exact event date can shift event times and distort the hazard analysis. The endpoint protocol should state whether the event is dated at onset, confirmation, or another rule; if only an interval is known, the analysis should reflect interval censoring rather than silently treating the visit date as exact.

Worked Example: Combining Treatment and Current Marker in the Hazard

Consider a hypothetical model with baseline hazard \(h_0(t)=0.015\) per month at a particular time, treatment coefficient \(\gamma=-0.40\) for \(D_i(t)=1\), and current-value association \(\alpha=0.60\). Compare an untreated patient with \(m_i(t)=4.4\) to a treated patient with \(m_i(t)=5.0\), holding all other covariates fixed. Their log-hazard contrast is:

$$ -0.40(1)+0.60(5.0-4.4)=-0.40+0.36=-0.04. $$

The treated patient’s hazard relative to the untreated patient is \(\exp(-0.04)=0.9608\), so the modeled hazard is \(0.015\times0.9608=0.01441\) per month. This calculation uses the stated treatment and marker terms; it does not show that treatment lowered risk. The patients differ in treatment and marker level, and treatment may have been initiated because of worsening disease. The model’s conditional contrast is not a randomized treatment comparison.

The calculation assumes that the treatment indicator and marker values refer to the same time, that the stated coefficients apply at that time, and that the proportional-hazards form is suitable. If treatment changes during follow-up, using only a baseline treatment label would fail to represent the exposure history described here.

Diagnostics, Alternatives, and Limitations

Diagnostics should examine both parts of the model and the link between them. For the longitudinal component, inspect residual patterns, the distribution of residuals, and whether the assumed trajectory captures curvature or abrupt changes. For the event component, assess whether the chosen hazard structure and covariate effects are adequate. Check whether fitted trajectories systematically miss patients with high or low values, whether treatment changes coincide with unexpected residual patterns, and whether estimates are sensitive to influential patients or sparse measurements near relapse.

The current-value link is one choice, not a universal biological law. A slope association asks whether the rate of marker change is related to hazard; an accumulated exposure link asks about a summary of prior trajectory. These alternatives answer different questions and require their own specification and justification. A separate survival model using only baseline calprotectin is simpler, but discards later measurements. A model using the most recent observed measurement is also simpler, but treats that noisy value as the risk predictor and may handle irregular visits or measurement error poorly. Joint modeling can address the shared trajectory and event process under its assumptions, but is more computationally demanding and can be sensitive to misspecified trajectory, association, or observation models.

A practical failure mode is circularity: if relapse is defined partly by a calprotectin threshold and the same measurements predict relapse, the apparent predictive relationship may be strengthened by construction. Another is informative monitoring: patients with suspected worsening may be tested more often, so observed measurement times are not merely administrative. Finally, a shared-parameter joint model does not automatically account for every source of dependence, treatment confounding, competing events, or informative dropout. Its estimates should be reported with the endpoint definition, units, time origin, treatment coding, and assumptions.

Key takeaway: A joint calprotectin-relapse analysis links a modeled latent trajectory to a clearly defined relapse hazard. Interpret the association on the log scale and in context, document treatment timing and event dating, and avoid turning a conditional association into a causal claim.

Check Your Understanding

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

  1. If \(\alpha=0.50\), what is the modeled hazard ratio for a \(0.40\)-unit difference in latent log calprotectin?
  2. Why can a relapse definition that includes a calprotectin threshold complicate interpretation of calprotectin as a predictor?
  3. A patient’s relapse is known only to have occurred between two study visits. Why may assigning the second visit as the exact event time be problematic?
  4. Does including treatment intensification as a time-varying covariate establish a causal treatment effect? Explain.
  5. Give one reason a joint model may be preferable to using only baseline calprotectin, and one assumption that could still make its conclusions unreliable.

Solutions. (1) \(\exp(0.50\times0.40)=\exp(0.20)=1.221\), a conditional hazard ratio for the stated latent log-marker contrast. (2) The predictor contributes to the outcome definition, so the observed association may partly reflect that construction rather than an independent relationship with relapse. (3) The event is interval-censored; treating the later visit as exact can misstate event timing and affect hazard estimates. (4) No. Worsening disease may prompt intensification, creating confounding by indication; covariate adjustment alone does not guarantee causal identification. (5) A joint model can use repeated measurements while accounting for measurement error and patient-specific trajectories; conclusions can still be unreliable if, for example, the trajectory or current-value link is misspecified.

Clinical Biostats