Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Deriving Selection Bias Under Outcome-Triggered Visits

Informative Observation Schedules · Tutorial 47 of 697

Deriving Selection Bias Under Outcome-Triggered Visits

You will derive the long-run distribution of biomarker states at visits and quantify how it differs from the distribution over patient-time.

Advanced 10 min read

What You'll Learn

  • Define the long-run occupation proportion and state-specific visit intensity in a two-state model.
  • Derive the fraction of visits occurring in the high state from long-run state exposure and visit rates.
  • Calculate the resulting shift in the mean biomarker value among observed visits.
  • Distinguish a long-run visit distribution from a pointwise distribution at a particular time.
  • Identify assumptions, diagnostics, and limitations of the two-state selection-bias calculation.

Why Visit-Triggered Measurements Can Be Unrepresentative

When a high biomarker value makes a clinical visit more likely, the measurements recorded at visits need not represent the biomarker states patients occupy over time. A patient who spends a small fraction of follow-up in a high state may nevertheless contribute a large fraction of observed measurements from that state if visits occur much more frequently while the patient is high. This is a sampling distortion caused by the observation schedule; it does not by itself show that the biomarker causes any clinical outcome.

The central calculation compares two distributions: the distribution of states across patient-time and the distribution of states across visit events. The distinction matters because patient-time is accumulated continuously, whereas a visit-level data set gives more weight to states that generate more visits. The derivation below uses long-run occupation times and state-specific event rates, rather than assuming that long-run occupation proportions describe the state at every particular instant.

Definition: Let \(X(t)\in\{H,L\}\) denote a patient's biomarker state at time \(t\), with \(H\) the high state and \(L\) the low state. Over follow-up of length \(T\), let \(A_s(T)=\int_0^T I\{X(t)=s\}\,dt\) be time spent in state \(s\). If the limits exist, the long-run occupation proportions are \(\pi_s=\lim_{T\to\infty} A_s(T)/T\), for \(s\in\{H,L\}\), with \(\pi_H+\pi_L=1\). Let \(N_s(T)\) count visits during follow-up that occur while the state is \(s\). A state-specific visit intensity \(\lambda_s\) means that, conditional on the observed history just before time \(t\), the instantaneous visit rate is \(\lambda_s\) when \(X(t-)=s\). The intensities have units of visits per unit time.

Assumptions and Long-Run Derivation

For the basic result, assume the state is well defined just before each visit, visits form a simple counting process, and the conditional visit intensity is \(\lambda_H\) in state \(H\) and \(\lambda_L\) in state \(L\). Thus, over a short interval of length \(dt\), conditional on the history, the chance of a visit is approximately \(\lambda_sdt\) when the current state is \(s\); the chance of two or more visits is negligible relative to \(dt\). Assume the long-run occupation proportions exist and that state-specific visit counts track their accumulated conditional rates over long follow-up. A standard sufficient setting is a recurrent process with suitable regularity and finite intensities, so the visit-count martingale fluctuations divided by \(T\) vanish as follow-up grows.

The intensity assumption gives a cumulative conditional rate of \(\lambda_s A_s(T)\) visits while in state \(s\). Under the long-run conditions just stated, \(N_s(T)/T\) approaches \(\lambda_s\pi_s\). Therefore, if the overall long-run visit rate is positive, the fraction of visits made in state \(H\) approaches the high-state rate per unit follow-up divided by the total rate:

$$ \frac{N_H(T)}{N_H(T)+N_L(T)} \longrightarrow q_H = \frac{\pi_H\lambda_H} {\pi_H\lambda_H+\pi_L\lambda_L}, \qquad \pi_H\lambda_H+\pi_L\lambda_L>0. $$

The positivity condition is essential: if both state-specific contributions to the overall rate are zero, there are no long-run visits and a visit-level state proportion is undefined. The corresponding low-state fraction is \(q_L=1-q_H\). The formula weights each state by both its share of patient-time and its visit rate while occupied.

Subtracting the time-based high-state proportion from the visit-based proportion gives a direct measure of the distortion:

$$ q_H-\pi_H = \frac{\pi_H\pi_L(\lambda_H-\lambda_L)} {\pi_H\lambda_H+\pi_L\lambda_L}. $$

When both states occupy positive fractions of follow-up and the total visit rate is positive, this difference is positive exactly when \(\lambda_H>\lambda_L\). If the state-specific rates are equal and positive, the two state distributions agree. If one state has zero occupation, there is no two-state mixture to distort. These statements concern the limiting distribution across visits; with a finite number of visits, the realized fraction varies around that long-run quantity.

Result: Under the stated assumptions and with a positive overall visit rate, the long-run share of visits in a state is proportional to that state's long-run occupation proportion multiplied by its visit intensity. The occupation proportions describe time; \(q_H\) and \(q_L\) describe visits.

Worked Examples

Worked Example: High Values Are Overrepresented

Suppose a hypothetical patient population spends 25% of follow-up in a high biomarker state and 75% in a low state. While high, the visit intensity is 4 visits per year; while low, it is 1 visit per year. Assume these long-run occupation proportions and state-specific intensities apply to the population being pooled, and that the process satisfies the long-run conditions above.

The high-state visit rate per unit of total follow-up is \(\pi_H\lambda_H=0.25(4)=1.00\) visit per year. The low-state contribution is \(\pi_L\lambda_L=0.75(1)=0.75\) visit per year, giving a total rate of \(1.00+0.75=1.75\) visits per year. The long-run fraction of visits in the high state is therefore

$$ q_H=\frac{0.25(4)}{0.25(4)+0.75(1)} =\frac{1.00}{1.75} =0.5714. $$

Thus 25% of patient-time is high, but about 57.14% of visits occur in the high state in the long run. For a concrete biomarker scale, suppose the high and low values are 10 and 2 units. The time-weighted mean is \(0.25(10)+0.75(2)=4.00\) units. The visit-weighted mean is \(0.5714(10)+0.4286(2)=6.571\) units. The difference is \(6.571-4.00=2.571\) units. It arises because high-state time contributes visits at a greater rate, not because the state occupies more time.

Worked Example: Equal Rates Do Not Reweight the States

Suppose a hypothetical group spends 40% of patient-time in state \(H\) and 60% in state \(L\). Visits occur at a constant intensity of 1.5 visits per month in either state. The overall rate is positive, and assume the long-run occupation proportions and count-rate conditions hold.

The high-state contribution is \(0.40(1.5)=0.60\) visits per month of total follow-up, and the low-state contribution is \(0.60(1.5)=0.90\). Hence

$$ q_H=\frac{0.60}{0.60+0.90}=0.4000, \qquad q_L=0.6000. $$

The visit distribution matches the time distribution because both states generate visits at the same rate. If the biomarker values are 8 units in state \(H\) and 3 units in state \(L\), both the time-weighted and visit-weighted means equal \(0.40(8)+0.60(3)=5.00\) units. This equality depends on equal state-specific intensities; it is not guaranteed merely because visits are frequent.

Worked Example: Long-Run Proportions Are Not Pointwise Probabilities

Consider a hypothetical process that alternates deterministically between a high state and a low state, spending equal durations in each. Its long-run occupation proportions are \(\pi_H=\pi_L=0.5\). Suppose the visit intensity is 4 per unit time in state \(H\) and 1 per unit time in state \(L\). The long-run high-state visit share is

$$ q_H=\frac{0.5(4)}{0.5(4)+0.5(1)} =\frac{2}{2.5}=0.8000. $$

Now consider a particular time strictly inside a high-state interval. For a sufficiently short interval beginning at that time, the state remains high, so a visit in that interval occurs in state \(H\) with probability tending to 1 as the interval length tends to zero. At a time strictly inside a low-state interval, that conditional fraction tends to 0. Neither pointwise result is 0.8. The value 0.8 is a long-run event share obtained by accumulating state-specific exposure and visit rates over time. A time-average argument cannot be replaced by claiming that \(\pi_H\) is the state probability at every specified instant.

Interpreting the Bias and Checking the Assumptions

For two possible biomarker values \(y_H\) and \(y_L\), the difference between the visit-weighted mean and the time-weighted mean is

$$ \left[q_Hy_H+(1-q_H)y_L\right] -\left[\pi_Hy_H+(1-\pi_H)y_L\right] = \frac{\pi_H\pi_L(\lambda_H-\lambda_L)(y_H-y_L)} {\pi_H\lambda_H+\pi_L\lambda_L}. $$

If \(y_H>y_L\) and \(\lambda_H>\lambda_L\), this difference is positive: the mean calculated from visits exceeds the time-weighted mean under this model. The interpretation is a difference between sampling distributions. It is not a causal effect of the biomarker on itself, nor does it establish that a clinical outcome is biased in the same direction.

In practice, checking the calculation requires attention to how states and exposure are defined. If the state is known over follow-up, one can compare the amount of time spent in each state with the number of visits occurring in each state. Dividing state-specific visit counts by state-specific exposure gives empirical state-specific rates; their values can be compared with the proposed \(\lambda_H\) and \(\lambda_L\). If measurements are available only at visits, the intervening state may be unknown, so the calculation may not be directly checkable from those measurements alone. A scheduled assessment or other information about the trajectory may be needed to assess the trigger mechanism.

The simple model can fail if visit intensity varies within a state, depends on additional history, or differs across patients in ways associated with their state histories. In those settings, the relevant long-run rate is based on accumulated conditional intensities, not necessarily one common \(\lambda_s\) multiplied by one pooled occupation proportion. A lag between a triggering value and the visit can also mean that the state at the visit differs from the state that generated the visit. The model must then distinguish the trigger state from the measured state.

Comparison, Limitations, and a Common Mistake

A measurement collected at a fixed time chosen independently of the biomarker state targets a time-based distribution, subject to other selection mechanisms. A measurement collected whenever a state-dependent visit occurs targets the visit-based distribution derived above. These are different sampling schemes. The formula isolates one reason for their difference; it does not account for nonattendance, dropout, terminal events, measurement error, or other selection mechanisms unless those are explicitly incorporated into the assumptions.

The two-state calculation is useful for understanding the mechanism but is deliberately restrictive. Real biomarkers are often continuous, and visit rates may vary smoothly with the current value, with past values, or with patient characteristics. The result also gives a long-run mixture, not a guarantee about the proportion in a short study or a particular calendar-time interval. Finite samples, changing state distributions, and changes in clinical practice can all cause observed proportions to differ from the long-run expression.

  • Common mistake: “High values occupy 25% of patient-time, so 25% of observed visits should be high.” This ignores the different visit rates across states.
  • Correction: Calculate the state-specific visit contributions \(\pi_H\lambda_H\) and \(\pi_L\lambda_L\), add them, and divide the high-state contribution by the positive total visit rate.
  • Another mistake: Use long-run occupation proportions as the state probabilities at every particular time. The alternating-state example shows why this is not valid without additional assumptions such as stationarity at the time considered.

This derivation quantifies the source of the distortion, but it does not itself correct visit-weighted analyses. Any adjustment requires additional modeling and assumptions about the observation process; the long-run formula is a way to understand what needs correcting, not a universal correction procedure.

Check Your Understanding

Answer each question using the distinction between patient-time and visit events. Solutions follow.

  1. A group spends 20% of follow-up in state \(H\) and 80% in state \(L\), with intensities 3 and 1 visits per month. What is the long-run fraction of visits in state \(H\)?
  2. For the setting in Question 1, is the high-state visit share greater or less than the high-state time proportion? Explain using the rate contributions.
  3. If both state intensities are zero, can the visit-level state fraction be calculated from the two-state formula? Why or why not?
  4. In a deterministic alternating-state process, why can the long-run visit share differ from the conditional fraction of visits in a short interval at a specified time?
  5. Suppose the high and low states have values 12 and 4 units, with \(\pi_H=0.5\), \(\pi_L=0.5\), \(\lambda_H=2\) per day, and \(\lambda_L=1\) per day. Calculate the time-weighted and visit-weighted means.

Solutions. (1) The high contribution is \(0.20(3)=0.60\), and the low contribution is \(0.80(1)=0.80\) visits per month of total follow-up. Thus \(q_H=0.60/(0.60+0.80)=0.4286\). (2) It is greater than 0.20 because the high-state contribution is 0.60 of a total 1.40, reflecting its higher visit intensity. (3) No. The denominator is zero, so the model implies no visits from which to define a visit-level proportion. (4) The long-run proportion accumulates time and visits across many high and low intervals. At a specified instant strictly inside one state, sufficiently short-interval visits occur in that state, so the pointwise fraction can approach 1 or 0 instead of the long-run share. (5) The time-weighted mean is \(0.5(12)+0.5(4)=8.00\) units. The visit fraction in the high state is \(0.5(2)/[0.5(2)+0.5(1)]=2/3\), so the visit-weighted mean is \((2/3)(12)+(1/3)(4)=9.333\) units.

Clinical Biostats