Tutorials › Marginal Structural Models › Outcome Definitions and Ascertainment

Target Trial Emulation · Tutorial 443 of 501

Outcome Definitions and Ascertainment

Learn how to make an outcome definition reproducible and evaluate whether each treatment strategy is observed and classified with comparable accuracy.

Intermediate 12 min read

What You'll Learn

  • Specify an outcome using explicit event criteria, a measurement window, and a named data source.
  • Distinguish whether an event occurred from whether the available records captured it.
  • Diagnose differences in outcome ascertainment across treatment strategies.
  • Derive how strategy-specific sensitivity and specificity can distort observed risks.
  • Use examples and audit information to evaluate endpoint classification.

Why Outcome Definitions Need More Than a Name

Terms such as “infection,” “relapse,” or “hospitalization” sound concrete, but they can refer to different events in different data systems. A laboratory-confirmed infection is not necessarily the same endpoint as an infection diagnosis in a billing record. A hospitalization may mean any admission, an admission for a prespecified cause, or an admission recorded in one particular health system. If the endpoint is not specified in operational terms, another analyst may not know which observations count.

In an emulated trial, the outcome definition should be fixed independently of how favorable it makes one treatment strategy appear. It should also make clear what the records can and cannot reveal. A recorded outcome is evidence about an event, not automatically a perfect record of the event itself.

Definition: An outcome definition specifies (1) the event criteria that make an outcome count, (2) the time window in which the event is counted, and (3) the data source and measurement procedure used to identify it. Ascertainment is the process by which the available data capture and classify whether the defined event occurred. The underlying event and its recorded indicator need not agree.

Let \(Z_i\) denote the treatment strategy to which person \(i\) is classified for the comparison, and let \(Y_i\) indicate whether the prespecified event occurred within the outcome window. Let \(Y_i^*\) denote the outcome as classified from the available source. When ascertainment is complete, \(Y_i^*=Y_i\) for every person; when it is imperfect, some events may be missed or some non-events may be classified as events.

Build an Operational Definition

A useful specification answers three questions in enough detail that two analysts would apply it in the same way.

  • What counts? State the event criteria, including any required diagnostic evidence, procedure, or adjudication rule. If a code list is used, identify the code set and whether one or repeated records are required.
  • When does it count? Give the start and end of the measurement window relative to the trial’s time zero. State how the event date is determined and how an event on a boundary date is handled.
  • Where is it measured? Name the data source, such as a linked hospital registry, electronic health records, claims, or scheduled study assessments. State whether sources are combined and how conflicts are resolved.

The follow-up window and endpoint timing are established in the earlier material on follow-up windows and trial endpoints. Here the emphasis is on making the event and its ascertainment rule explicit within that window. A database’s last available date, for example, is not itself evidence that no event occurred after that date.

Worked Example: Defining a Thirty-Day Infection Endpoint

Suppose a study compares two strategies for starting treatment on day 0 and intends to measure serious bacterial infection during the next 30 days. “Serious infection” is not yet an operational definition. Consider this specification:

Event criteria: at least one inpatient admission with a bacterial pathogen identified from a normally sterile-site culture, with the treating clinician’s record indicating that the finding represents infection rather than contamination. A blinded reviewer applies the same rule in both strategy groups.

Measurement window: from day 1 through day 30 after time zero, inclusive. The admission date determines whether an event is inside the window; a culture collected during an eligible admission can confirm the event.

Data sources: linked hospital admission records, microbiology results, and clinical notes. A record in only one source triggers review; it does not automatically satisfy the endpoint.

For a patient admitted on day 30 with a qualifying culture, the event counts. An outpatient positive culture without a qualifying admission does not. A culture result classified as contamination does not count. These rules make the endpoint reproducible and clarify which records are needed to establish it.

Two endpoints can share a label but differ in criteria or capture. For instance, “stroke” identified by a discharge diagnosis code may include some cases that fail a clinical adjudication rule, while an adjudication rule may miss events never recorded in the linked hospitals. Neither source is automatically the correct choice in every setting. The choice should follow the clinical question and the data available, and the resulting endpoint should be described honestly.

How Unequal Ascertainment Changes Recorded Risks

Ascertainment may differ by strategy if participants receive different amounts or types of medical contact, if clinicians look for an outcome more often in one group, or if one strategy is more likely to lead to care outside the data system. Classification can also differ when reviewers know the treatment received. A comparison of recorded outcomes then mixes differences in event occurrence with differences in the chance that an event is observed or classified.

The following derivation isolates one important form of this problem. Within strategy group \(z\), define sensitivity as \(Se_z=P(Y^*=1\mid Y=1,Z=z)\) and specificity as \(Sp_z=P(Y^*=0\mid Y=0,Z=z)\). Write the event risk as \(p_z=P(Y=1\mid Z=z)\) and the recorded risk as \(q_z=P(Y^*=1\mid Z=z)\). Assume these probabilities refer to the same target population and window, and that the stated sensitivity and specificity apply to its events and non-events.

$$ \begin{aligned} q_z &=P(Y^*=1\mid Z=z)\\ &=P(Y^*=1\mid Y=1,Z=z)P(Y=1\mid Z=z)\\ &\quad +P(Y^*=1\mid Y=0,Z=z)P(Y=0\mid Z=z)\\ &=Se_zp_z+(1-Sp_z)(1-p_z). \end{aligned} $$

The first term counts true events correctly recorded as events. The second counts non-events incorrectly recorded as events. This identity is a direct partition by the true event status; it does not require sensitivity or specificity to be high.

Subtracting the two recorded risks gives a useful diagnostic decomposition. Since \(q_z=(Se_z+Sp_z-1)p_z+1-Sp_z\),

$$ q_1-q_0 =(Se_1+Sp_1-1)p_1-(Se_0+Sp_0-1)p_0+(Sp_0-Sp_1). $$

Thus, even if the true risks are equal, the recorded risks can differ when classification properties differ by strategy. Conversely, similar recorded risks do not establish similar true risks. A simple special case is perfect specificity, \(Sp_0=Sp_1=1\): then \(q_z=Se_zp_z\), so differential sensitivity alone can change the recorded comparison.

Worked Example: Different Sensitivity, Same Event Risk

Assume each strategy group has 1,000 people and the underlying event risk is 10% in both groups. Suppose specificity is 100% in both groups, but sensitivity is 90% under strategy 0 and 60% under strategy 1.

The true event count is \(1{,}000(0.10)=100\) in each group. Under strategy 0, \(90\) of these events are recorded, so the recorded risk is \(90/1{,}000=0.09\). Under strategy 1, \(60\) are recorded, giving a recorded risk of \(60/1{,}000=0.06\).

The formula checks these calculations: \(q_0=0.90(0.10)+0(0.90)=0.09\), while \(q_1=0.60(0.10)+0(0.90)=0.06\). The recorded risk difference is \(0.06-0.09=-0.03\), even though the underlying risks are equal. The apparent difference is entirely due to the assumed difference in capture.

Incomplete capture is not the only issue. If the outcome is unknown for some people, the observed risk among those with recorded outcomes may differ from the group risk even when the outcome classification itself is accurate for observed people. To see the distinction, let \(R=1\) indicate that the outcome is ascertained. If ascertainment depends on event status within a strategy group, then among those with known outcomes,

$$ P(Y=1\mid Z=z,R=1) =\frac{P(R=1\mid Y=1,Z=z)p_z} {P(R=1\mid Y=1,Z=z)p_z+P(R=1\mid Y=0,Z=z)(1-p_z)}. $$

This follows by applying Bayes’ rule to the event and non-event cases among \(R=1\). The observed-case risk equals \(p_z\) if the probability of ascertainment is the same for events and non-events within that group. If that condition fails, simply omitting unknown outcomes can shift the risk. This equation is a warning about interpretation, not a general correction method.

Worked Example: Unknown Outcomes and the Observed-Case Risk

Suppose a group has 100 people, of whom 20 truly experience the event. The outcome is ascertained for 90% of event cases and 80% of non-cases. The true risk is \(20/100=0.20\).

Expected ascertainment counts are \(20(0.90)=18\) event cases and \(80(0.80)=64\) non-cases. Among the \(18+64=82\) people with an ascertained outcome, the event risk is \(18/82\approx0.2195\), not \(0.20\).

Using the formula, the numerator is \(0.90(0.20)=0.18\), and the denominator is \(0.18+0.80(0.80)=0.82\). The ratio is \(0.18/0.82\approx0.2195\), agreeing with the count calculation. This example shows why an ascertainment indicator and an outcome classification error should not be treated as the same problem.

Assessing Whether Ascertainment Differs

Assessment starts with the process that produces the recorded outcome, not just a comparison of final event counts. Compare the strategies on features that can affect capture: frequency of clinical contact, availability of outside-network records, use of diagnostic tests, referral patterns, and completeness of linkage. Check whether the outcome criteria and source coverage are the same by group, and whether adjudicators could infer strategy from the records.

When feasible, a validation sample can be reviewed using a reference procedure applied in both groups. For example, records from both groups can undergo blinded clinical review, allowing sensitivity and specificity to be estimated separately. Such estimates are only informative for the populations and definitions represented in the validation sample; a small or selectively reviewed sample may not reveal important differences.

A related but distinct check is to tabulate the fraction of people with an outcome that is unknown, by strategy. That identifies a potential difference in completeness, but equal fractions do not guarantee equal ascertainment: the unknown outcomes could be concentrated among events in one group and among non-events in the other. Likewise, equal recorded event rates do not establish equal sensitivity or specificity.

Worked Example: Comparing a Claims Rule With Review

A validation review identifies 40 true events among 200 people in each strategy group. A claims-based rule records 32 of the 40 events in group A and 24 of the 40 in group B. Among the 160 people without the event, the rule records 8 in group A and 16 in group B.

For group A, sensitivity is \(32/40=0.80\), and specificity is \((160-8)/160=152/160=0.95\). The recorded event count is \(32+8=40\), so its recorded risk is \(40/200=0.20\). The reference event risk is \(40/200=0.20\).

For group B, sensitivity is \(24/40=0.60\), and specificity is \((160-16)/160=144/160=0.90\). The recorded event count is \(24+16=40\), again giving a recorded risk of \(40/200=0.20\). The reference event risk is also 0.20.

The equal recorded risks conceal different classification: group B has more missed events and more false positives. The risk formula verifies this: for A, \(0.80(0.20)+0.05(0.80)=0.20\); for B, \(0.60(0.20)+0.10(0.80)=0.20\). Therefore, comparing only total recorded events would miss the ascertainment difference.

Common Pitfall and Practical Limits

Wrong reasoning: “The same claims algorithm was applied in both groups, so ascertainment must be comparable.” Correction: applying the same rule does not ensure equal sensitivity or specificity. Participants in one group may be more likely to receive tests, be admitted to a linked hospital, or have their records captured. The algorithm can be identical while the information supplied to it differs.

The primary alternative to a routine-data endpoint may be a clinical adjudication process, a registry, or a different combination of sources. These approaches can improve event definition or capture, but they also require resources and may have their own errors. A code-based endpoint is efficient and reproducible when its performance is adequate; adjudication can be more clinically specific but may be subjective, incomplete, or costly. There is no universally superior source independent of the event and setting.

Diagnostics cannot prove that ascertainment is identical. If there is no validation information, no source able to detect events outside the routine system, and no plausible basis for comparing capture, the degree of differential error may remain unknown. State the operational definition and the known limitations rather than interpreting recorded outcomes as error-free events. Detailed methods for unequal observation and follow-up require separate treatment.

Key takeaway: Specify the event, window, and source; then ask whether each strategy gives events and non-events comparable opportunities to be observed and classified. The same endpoint rule does not, by itself, guarantee comparable ascertainment.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. Name the three essential components of an operational outcome definition.
  2. With perfect specificity in both groups, what is the recorded risk when the true risk is \(0.15\) and sensitivity is \(0.80\)?
  3. Can equal recorded event risks establish equal sensitivity and specificity? Explain.
  4. In a group, the true risk is \(0.25\), event ascertainment is \(0.80\), and non-event ascertainment is \(0.80\). What is the event risk among those ascertained?
  5. Give one reason the same claims algorithm could have different sensitivity across treatment strategies.

Solutions. (1) Explicit event criteria, a defined measurement window, and a named data source or measurement procedure. (2) \(q=0.80(0.15)+0(0.85)=0.12\). (3) No. Different combinations of sensitivity and specificity can yield the same recorded risk; equal recorded risks do not identify either classification property. (4) The numerator is \(0.80(0.25)=0.20\), and the denominator is \(0.20+0.80(0.75)=0.80\), so the ascertained risk is \(0.20/0.80=0.25\). (5) One strategy may lead to more diagnostic testing or more contact with facilities whose records are linked, making events more likely to be captured even under the identical algorithm.

Clinical Biostats