Tutorials › Pattern-Mixture and Selection Models › Nonlinear Outcome Trajectories Under Selection

Diggle-Kenward and Related Models · Tutorial 104 of 499

Nonlinear Outcome Trajectories Under Selection

Learn to specify and interpret nonlinear longitudinal outcome means alongside dropout hazards that depend on the current, possibly unobserved, outcome.

Advanced 12 min read

What You'll Learn

  • Specify quadratic and spline time trends for repeated outcomes.
  • Formulate a current-outcome dropout hazard alongside a nonlinear outcome model.
  • Interpret a selection coefficient using the outcome scale in the model.
  • Calculate trajectory means, dropout hazards, and conditional odds ratios.
  • Identify assumptions and diagnostics for nonlinear current-outcome selection models.
  • Distinguish a nonlinear time trend from a nonlinear outcome effect in the dropout equation.

Why Combine a Nonlinear Trajectory With Selection?

Repeated outcomes need not change at a constant rate. A biomarker might rise quickly and then level off; a symptom score might decline and later rebound. At the same time, the chance that a participant drops out may depend on the outcome at the current visit. A useful model must therefore represent both the shape of the outcome trajectory over time and the relationship between the current outcome and dropout.

These are separate modeling choices. A quadratic or spline term allows the expected outcome to vary nonlinearly with visit time. A current-outcome term in the dropout equation allows dropout risk to vary with the outcome at that visit. Neither choice implies the other.

Definition: Let \(Y_{ij}\) be the outcome for individual \(i\) at visit \(j\), and let \(t_{ij}\) be that visit's time. Let \(R_{ij}=1\) mean that the outcome is observed and \(R_{ij}=0\) mean that it is missing because of dropout. Assume monotone dropout, with \(R_{i0}=1\) and \(R_{ij}=0\) implying \(R_{i,j+1}=0\). Among individuals observed through visit \(j-1\), the visit-\(j\) dropout hazard is the conditional probability of dropping out at visit \(j\), given the specified outcome and covariate history.

The model below treats the current outcome as preceding the dropout decision at that visit. If dropout occurs before \(Y_{ij}\) is recorded, \(Y_{ij}\) is still a latent outcome in the model, not an observed value. This timing convention is essential: the selection equation can depend on an outcome that is missing precisely because dropout occurred.

Modeling the Outcome Trajectory and Dropout Hazard

A general mean trajectory can be written using a vector of time-basis functions \(B(t)\). For example, a quadratic trajectory uses \(B(t)=(1,t,t^2)^\mathsf{T}\), while a spline uses basis functions joined at selected knots. A simple outcome model is

$$ E(Y_{ij}\mid X_i)=B(t_{ij})^\mathsf{T}\beta+X_i^\mathsf{T}\theta, $$

where \(X_i\) denotes baseline covariates. This equation specifies the conditional mean, not the full outcome distribution. For example, a Gaussian model additionally specifies a covariance structure for repeated measurements. The mean model and covariance assumptions should be chosen to reflect the outcome and the study design.

One common selection model uses a logistic dropout hazard:

$$ \operatorname{logit}(h_{ij})= \gamma_0+\gamma_t^\mathsf{T}C(t_{ij})+ \gamma_x^\mathsf{T}X_i+ \gamma_y\frac{Y_{ij}-c}{s}, \qquad h_{ij}=P(R_{ij}=0\mid R_{i,j-1}=1,\text{specified history}), $$

Here \(C(t)\) can include visit-time terms, \(c\) is a centering value, and \(s>0\) is a scale chosen for the outcome. The precise history being conditioned on must be stated as part of the model. In this version it includes the current outcome, previous observed outcomes as specified, and covariates; the model does not add future outcomes to the visit-\(j\) hazard. The term involving \(\gamma_y\) is a linear effect of the scaled current outcome on the log odds of dropout, conditional on the other terms.

The outcome trajectory can be nonlinear in time while the hazard remains linear in the scaled outcome on the logit scale. A quadratic term in the outcome mean does not mean that the hazard has a quadratic outcome effect. If such an effect is scientifically justified, it must be included separately and assessed as an additional model choice.

Interpretation: Holding the other terms in the dropout equation fixed, a one-unit increase in \((Y_{ij}-c)/s\) multiplies the conditional odds of dropout at visit \(j\) by \(\exp(\gamma_y)\). This is a conditional association in the specified model; it is not, by itself, a causal effect.

Assumptions and Sequential Structure

A model with a current-outcome dropout hazard requires assumptions about both the outcome process and the selection process. In particular, it assumes a correctly specified outcome distribution (including its time-varying mean and dependence across visits) and a correctly specified hazard link and covariate structure. It also assumes that dropout is monotone as defined above, unless the model is extended to allow intermittent missingness.

The hazard is defined among individuals still observed at the start of a visit. A sequential model can generate the complete outcome trajectory from its outcome distribution and then generate each visit's dropout decision, in order, using the current outcome and the stated history. The resulting joint model is built from the sequential outcome and dropout factors. This does not justify replacing those factors with a product of hazards while conditioning on an entire future outcome history: future outcomes are not part of the visit-specific conditioning set unless the model explicitly says so. Being precise about conditioning avoids confusing sequential survival probabilities with probabilities conditional on a full trajectory.

Because \(Y_{ij}\) may be missing when \(R_{ij}=0\), fitting the joint model requires accounting for that unobserved current outcome under the specified outcome distribution. A dropout hazard cannot be calculated from an unobserved value as though it were recorded. The model supplies a probability distribution for the missing outcome; estimation must account for uncertainty about it. The details of likelihood-based estimation and numerical integration depend on the chosen outcome model.

Identification also matters. The observed data alone generally do not determine how dropout would depend on outcomes that are unobserved after dropout. Conclusions about \(\gamma_y\) and the unobserved trajectory therefore rely on the joint-model assumptions and may be sensitive to them. A selection coefficient should not be presented as a directly observed empirical quantity in the same way as a complete-case regression coefficient.

Worked Model Calculations

Worked Example: A Quadratic Mean With a Current-Outcome Hazard

Hypothetical setup. Suppose a biomarker is measured at times \(t=0,1,2,3\), in arbitrary units. Use the quadratic mean \(E(Y_{ij})=20+3t_{ij}-0.5t_{ij}^2\). Let the dropout logit be \(\operatorname{logit}(h_{ij})=-2.4+0.15t_{ij}+0.6(Y_{ij}-20)/5\). The outcome scale \(s=5\) means that \(\gamma_y=0.6\) is the log-odds change per five-unit increase.

At \(t=3\), the mean outcome is

$$ 20+3(3)-0.5(3^2)=20+9-4.5=24.5. $$

For a hypothetical current outcome of \(Y_{ij}=25\), the scaled outcome is \((25-20)/5=1\). Therefore the hazard logit is \(-2.4+0.15(3)+0.6(1)=-1.35\), and

$$ h_{ij}=\frac{\exp(-1.35)}{1+\exp(-1.35)} =\frac{0.2592}{1+0.2592} \approx 0.2059. $$

Under this specified model and history, the conditional dropout probability is about 20.6%. The quadratic mean describes the expected biomarker path; it does not make the hazard calculation a quadratic function of the outcome.

Worked Example: A Linear Spline Trajectory

Hypothetical setup. Consider the continuous, piecewise-linear mean \(E(Y_{ij})=10+1.5t_{ij}+0.8(t_{ij}-2)_+\), where \((u)_+=\max(u,0)\). The knot is at \(t=2\). Let \(\operatorname{logit}(h_{ij})=-2+0.25t_{ij}+0.5(Y_{ij}-12)/4\).

Before the knot, at \(t=1\), the hinge term is zero, so the mean is \(10+1.5(1)=11.5\). After the knot, at \(t=3\), the hinge term is \(3-2=1\), giving \(10+1.5(3)+0.8(1)=15.3\). The trajectory is continuous at the knot: the mean at \(t=2\) is \(10+1.5(2)+0.8(0)=13\), whether approached from the earlier or later segment.

For a hypothetical current value of \(15.3\) at \(t=3\), the scaled value is \((15.3-12)/4=0.825\). The hazard logit is \(-2+0.25(3)+0.5(0.825)=-0.8375\). Thus

$$ h_{ij}=\frac{\exp(-0.8375)}{1+\exp(-0.8375)} =\frac{0.4328}{1+0.4328} \approx 0.3021. $$

The estimated model would assign a conditional dropout probability of about 30.2% for that visit and outcome, given the other terms in the hazard. The knot changes the trajectory's slope; it does not create a discontinuity in the mean or automatically add a knot to the dropout equation.

Worked Example: Interpreting the Outcome Scale in the Hazard

Hypothetical setup. At \(t=2\), suppose the trajectory mean is \(18+2t-0.5t^2=20\). The dropout logit is \(-2.2+0.1t+0.35(Y_{ij}-20)/5\). Compare two hypothetical current outcomes, 20 and 25 units, with all other terms held fixed.

At \(Y_{ij}=20\), the logit is \(-2.2+0.1(2)+0.35(0)=-2.0\), so the hazard is \(\exp(-2)/(1+\exp(-2))\approx0.1192\). At \(Y_{ij}=25\), the scaled outcome is 1, the logit is \(-2.2+0.2+0.35=-1.65\), and the hazard is \(\exp(-1.65)/(1+\exp(-1.65))\approx0.1611\).

The conditional odds ratio comparing 25 with 20 units is \(\exp(0.35)\approx1.419\). Thus, at this visit and conditional on the other model terms, the odds of dropout are about 1.42 times as large at 25 units as at 20 units. The corresponding hazards are 11.9% and 16.1%; the odds ratio is not a ratio of those two probabilities.

Why the Basis and Link Choices Matter

For a quadratic mean, the derivative with respect to time is \(\beta_1+2\beta_2t\), so the rate of change varies with time. For a spline mean, the basis functions allow the rate of change to differ across time regions. These forms can represent curvature more flexibly than a single straight line, but their interpretation depends on the time scale, centering, and chosen knots.

The dropout link is a separate choice. With the logistic link, \(\gamma_y\) has a conditional log-odds interpretation. A complementary log-log link instead models a transformed hazard and has a different coefficient interpretation. Do not transfer the logistic odds-ratio interpretation to a different link. Whatever the link, state the outcome scale: changing from raw units to five-unit increments rescales the coefficient. If \(z=(Y-c)/s\), then the coefficient is per \(s\) outcome units, not per one raw unit.

Diagnostics, Alternatives, and Limitations

A flexible time trend can fit observed outcomes better than a straight line while still being unsuitable. Plot observed outcomes against time by relevant groups and compare them with fitted means; inspect residual patterns and the plausibility of extrapolated curves. For splines, check whether the number and placement of knots create implausible bends, especially near the boundaries where data are sparse. For the selection equation, examine whether fitted dropout probabilities are plausible over the observed outcome range and whether a few extreme outcomes dominate the fitted relationship. These checks assess the model's compatibility with observed information; they cannot verify the assumed dependence on outcomes missing after dropout.

Common warning signs include unstable curvature when a quadratic term is added, large changes in the selection coefficient after modest rescaling, fitted probabilities near zero or one across much of the relevant range, and poor overlap in observed outcomes between people who do and do not drop out. Such patterns may reflect sparse data, an over-flexible basis, an unsuitable hazard form, or weak information about the selection mechanism. They call for model revision and sensitivity analysis, not automatic confidence in a more complicated fit.

A linear outcome model with a simpler dropout equation is easier to interpret but can miss genuine curvature. Pattern-mixture models parameterize outcome distributions by missingness pattern rather than placing outcome dependence directly in a selection equation. Models assuming missing at random are another alternative, but they do not represent residual dependence of dropout on the current unobserved outcome in the same way. These approaches answer related questions under different assumptions; one is not a purely data-driven correction for another.

The principal limitation is that the current-outcome selection relationship after dropout is not directly observed. Results can depend on the assumed outcome distribution, trajectory basis, link, and selection coefficient. A nonlinear time basis cannot remove that uncertainty. Report the time scale, basis and knots, outcome scaling, hazard conditioning set, and sensitivity of conclusions to plausible alternative assumptions.

Common Mistake

Pitfall: “The outcome trajectory is quadratic, so dropout must have a quadratic effect of the outcome.” This confuses two model components. A quadratic time basis in \(E(Y_{ij}\mid X_i)\) describes how the mean outcome varies with time. A term such as \(\gamma_y(Y_{ij}-c)/s\) describes how the dropout log odds vary with the current outcome. Use a nonlinear outcome effect in the hazard only if it is separately specified and supported; do not infer it from curvature over time.

A related error is to calculate a dropout hazard using a missing current outcome as if its value had been observed. The model defines a hazard conditional on that latent value; when it is missing, its uncertainty must be handled through the joint model rather than by silently substituting a single value.

Check Your Understanding

Answer each question, then compare with the solutions.

  1. In a quadratic mean model, what does the \(t^2\) term describe, and does it imply a quadratic effect of the outcome in the dropout equation?
  2. A logistic hazard includes \(0.4(Y_{ij}-10)/2\). What is the conditional odds ratio for a four-unit increase in \(Y_{ij}\), holding other terms fixed?
  3. For the spline \(m(t)=5+2t+(t-3)_+\), calculate the mean at \(t=2\) and \(t=5\), and state whether the curve is continuous at the knot.
  4. Why can observed-data checks not verify the assumed dependence of dropout on current outcomes that are missing after dropout?

Solutions. (1) The \(t^2\) term allows the expected outcome to curve over time. It says nothing by itself about the outcome functional form in the hazard; that must be specified separately. (2) A four-unit increase is two increments of the model's two-unit scale. The log-odds change is \(2(0.4)=0.8\), so the conditional odds ratio is \(\exp(0.8)\approx2.226\). (3) At \(t=2\), the hinge term is zero and \(m(2)=5+2(2)=9\). At \(t=5\), it is \(5-3=2\), so \(m(5)=5+10+2=17\). The hinge term is zero at the knot from either side, so the curve is continuous at \(t=3\). (4) After dropout, the relevant current outcome is unobserved. Observed data can assess fit where outcomes are observed, but dependence on those missing values relies on the specified joint-model assumptions and cannot be directly checked from those values themselves.

Clinical Biostats