Why put visit effects in both models?
In a repeated-biomarker trial, the average biomarker can change over scheduled visits, and the chance of dropout can change with visit as well. A selection model makes these features explicit in two related pieces: a model for the biomarker trajectory and a model for dropout conditional on the current biomarker. Keeping the visit effects visible helps distinguish a changing average biomarker from a changing dropout propensity.
The example below is hypothetical. It illustrates a model and calculations; it does not represent a real trial. Let \(A_i=1\) denote assignment to treatment and \(A_i=0\) denote control. Let \(Y_{ij}\) be participant \(i\)'s biomarker at scheduled visit \(j\), where \(j=0,1,2\) corresponds to weeks 0, 4, and 8. Let \(D_{ij}=1\) mean that the participant drops out at visit \(j\), so the scheduled current biomarker \(Y_{ij}\) is not observed because of dropout. The dropout model applies only to participants still under follow-up immediately before that visit.
Specify the trajectory and dropout equations
A useful starting point for the biomarker is a linear trajectory with categorical visit effects. In this example, the model allows a treatment difference at baseline and treatment-by-visit differences at follow-up:
Here \(I(\cdot)\) is an indicator, \(b_i\sim N(0,16)\) is a participant-specific random intercept, and \(\varepsilon_{ij}\sim N(0,9)\) are independent errors, also independent of \(b_i\) and treatment. Thus the random intercept has variance 16 and the visit-specific error variance is 9. The marginal mean trajectory is obtained by averaging over \(b_i\) and \(\varepsilon_{ij}\), both of which have mean zero. The random intercept represents stable between-participant variation; it does not change the fixed-effect mean trajectory.
For the dropout part, use a logistic probability model at the two follow-up visits:
The visit-4 effect is the reference level for dropout, and \(Y_{ij}\) is centered at 100 biomarker units. The equation describes the dropout probability for a participant who has not already dropped out, conditional on their current scheduled biomarker and treatment. It is a sequential dropout probability, not the probability of ever dropping out by week 8.
These equations rely on substantive and statistical assumptions. The trajectory mean and its random-effects distribution must adequately describe biomarker variation; the logit-linear form must adequately describe conditional dropout odds; and the scheduled visit and treatment coding must match the data. The sequential model also assumes dropout is adequately represented by the included current outcome, treatment, and visit terms, conditional on being at risk. In a real analysis, additional pre-specified covariates or history terms may be needed. The current-outcome association is an assumption about the joint model, not something directly observed for participants whose current biomarker is missing.
Worked Example: Calculate the Visit-Specific Trajectory Means
Use the trajectory equation to find the mean biomarker at week 8 in each arm. The mean is found by setting \(b_i\) and \(\varepsilon_{ij}\) to their expectations, which are both zero.
For control at week 8, \(A_i=0\) and \(j=2\):
For treatment at week 8, \(A_i=1\) and \(j=2\):
The model therefore gives a week-8 treatment-minus-control mean difference of \(98-90=8\) biomarker units. This is a contrast in the modelled outcome means; the calculation alone does not establish a causal effect.
Calculate conditional dropout risks
To turn a linear predictor into a probability, apply the inverse-logit function. If the model's linear predictor for a specified profile is \(\eta\), the conditional dropout probability is \(e^\eta/(1+e^\eta)\). This probability is conditional on the stated current biomarker and other model covariates, as well as being at risk for dropout at that visit.
Worked Example: Dropout Risk at Week 4 for a Control Profile
Consider a participant still under follow-up at week 4, assigned to control, with a current biomarker of 94 units. The current value is specified as a profile for the model calculation, whether or not it would be observed for a participant who drops out at that visit.
Substitute \(A_i=0\), \(j=1\), and \(Y_{i1}=94\) into the dropout equation:
Thus the dropout probability is
Under this specified model, the conditional probability of dropout at week 4 for this profile is about 3.77%. It is not the overall week-4 dropout rate, which would average over the distribution of current biomarkers and other covariates among participants still at risk.
Worked Example: A Week-8 Risk for a High-Biomarker Profile
Now consider a participant still under follow-up at week 8, assigned to treatment, with a current biomarker of 110 units. Substituting \(A_i=1\), \(j=2\), and \(Y_{i2}=110\) gives
The corresponding probability is
The model assigns this profile an approximately 14.8% conditional probability of dropout at week 8. This is a visit-specific risk among those still followed at the start of week 8, not a cumulative risk over the trial.
Worked Example: Compare Treatment Profiles at the Same Visit
At week 8, compare control and treatment participants with the same current biomarker value, 110 units, each still under follow-up. For control, the linear predictor is \(-3+0.50+0.40=-2.10\), so the probability is
For treatment, the predictor is \(-1.75\), giving a probability of approximately 0.148, as calculated above. The modelled difference in these conditional probabilities is \(0.148-0.109=0.039\), or about 3.9 percentage points for these particular profiles. The treatment coefficient has a more direct odds interpretation: at the same visit and current biomarker, the treatment-to-control dropout odds ratio is
Thus the model specifies about 1.42 times the dropout odds for treatment versus control at that fixed profile. The risk difference is profile-specific; the odds ratio follows from the model coefficient and is conditional on the predictors in the equation.
What the calculations establish—and what they do not
The inverse-logit calculation follows directly from the definition of the logit. If \(p\) is a probability and \(\eta=\operatorname{logit}(p)=\log\{p/(1-p)\}\), exponentiating gives \(e^\eta=p/(1-p)\). Solving for \(p\) yields \(p=e^\eta/(1+e^\eta)\). A one-unit increase in \(Y_{ij}\) changes \(\eta\) by \(\gamma=0.04\); exponentiating the change shows that the odds are multiplied by \(e^{0.04}\). For a 10-unit increase, the change is \(10(0.04)=0.4\), so the odds ratio is \(e^{0.4}\approx1.49\).
The risks calculated above are conditional on a specified current biomarker. A marginal dropout rate at a visit would require averaging the conditional probabilities over the relevant distribution of current outcomes and covariates among participants still at risk. In this model, that distribution must be combined with the trajectory model. Substituting a single trajectory mean into the logistic equation generally does not give the marginal dropout rate, because the inverse-logit is nonlinear.
The current biomarker for a dropout event may be unobserved. Consequently, observed dropout frequencies by treatment and visit can help assess whether the model reproduces broad response patterns, but they cannot by themselves verify how dropout depends on the missing current biomarker. That dependence is a feature of the specified selection model and needs substantive justification and sensitivity assessment. Also inspect whether the outcome model describes the observed repeated measurements adequately and whether the fitted model has estimation or convergence problems; a plausible calculation for selected profiles does not establish that the full model is adequate.
How this model differs from alternatives
A response model that omits the current outcome makes dropout depend only on the other included variables, such as treatment and visit. That is a simpler specification, but it does not express the current-outcome dependence in this example. A model based on previously observed biomarker history instead conditions dropout on earlier measurements; it answers a different conditional modelling question from one that includes the scheduled current outcome.
A pattern-mixture model organizes the outcome distribution by response or dropout pattern rather than expressing response probabilities conditional on the outcome. The selection formulation used here instead pairs an outcome trajectory with a conditional dropout equation. These approaches make different assumptions about the unobserved data and need not produce the same results. No single model form is guaranteed by the observed measurements alone.
Common pitfalls and limitations
- Confusing conditional and marginal risks. The 14.8% result is conditional on a specified week-8 biomarker, treatment, and being at risk. It is not the overall proportion expected to drop out at week 8.
- Using the wrong visit indicator. Week 4 is the reference for the dropout visit effect in this equation, so its indicator is zero at week 4 and one at week 8. The outcome visit terms have their own specified coding.
- Reading a logit coefficient as a probability difference. The coefficient 0.35 is a change in log odds. Its exponent, about 1.42, is an odds ratio, not a 42-percentage-point increase in risk.
- Treating a hypothetical profile as observed data. A calculation at a specified latent current value illustrates the model implication. It does not mean that the value was measured for a participant who dropped out before measurement.
- Over-interpreting the model. The equations describe an assumed joint structure for biomarker and dropout. They do not, by themselves, show that changing the biomarker would change dropout or that the model's unobserved-outcome assumptions are correct.
The model is also limited by its chosen functional forms. A linear mean trajectory may not capture a sharply curved biomarker course, and a linear current-outcome term on the log-odds scale may not describe the dropout relationship well. With only observed current biomarker values among retained participants, fit to the observed outcomes cannot settle the unobserved current-outcome dependence. These limitations matter when interpreting any selected-profile risk.
Check Your Understanding
Try each question, then compare with the solutions below.
- Under the stated trajectory model, what is the treatment-arm mean biomarker at week 4?
- For a control participant still at risk at week 8 with current biomarker 105, calculate the modelled conditional dropout probability.
- What is the dropout odds ratio associated with a 10-unit increase in the current biomarker, holding the other predictors fixed?
- Why does substituting the mean biomarker into the dropout equation not generally give the marginal dropout probability?
Solutions. (1) At week 4, \(A_i=1\) and \(j=1\), so the mean is \(100+4-6+2=100\) biomarker units. (2) The linear predictor is \(-3+0.50+0.04(105-100)=-2.30\). Therefore the conditional probability is \(1/(1+e^{2.30})\approx0.0911\), or 9.11%. (3) A 10-unit increase changes the linear predictor by \(10(0.04)=0.40\), so the odds ratio is \(e^{0.40}\approx1.49\). (4) The conditional probabilities must be averaged over the distribution of current outcomes among those at risk. Because the inverse-logit is nonlinear, the inverse-logit evaluated at the mean outcome generally differs from that average.