Written and maintained by CASRAI Editorial Board
Published
On this page
Confounding by indication is a systematic bias in observational health and epidemiological research that occurs when the clinical indication or severity of illness prompting a treatment also independently predicts the patient’s health outcome. Because physicians prescribe medications and clinical interventions based on prognosis, underlying baseline risk, and diagnostic severity, treated individuals systematically differ from untreated or alternatively treated patients. This prognostic imbalance distorts the crude association between exposure and outcome in observational studies, frequently causing beneficial therapies to appear harmful or ineffective, or falsely exaggerating adverse drug effects.
Definition and Causal Mechanism of Confounding by Indication
Confounding by indication arises directly from rational clinical decision-making. In routine clinical care, physicians do not allocate medical therapies at random. Instead, doctors selectively administer pharmacotherapies, surgical procedures, or intensive diagnostic monitoring to patients who present with active disease, severe symptoms, or deteriorating prognostic markers. When researchers conduct a retrospective cohort study using real-world medical records, insurance claims, or clinical registries, this clinical selection process establishes an inherent confounding path.
In classical epidemiologic terminology, a confounding variable is an extrinsic factor that satisfies three formal criteria: it must be causally or statistically associated with the exposure; it must be an independent risk factor for the outcome among the unexposed; and it must not lie directly on the causal pathway between the exposure and the outcome. Confounding by indication satisfies all three criteria simultaneously:
- Association with exposure: The underlying clinical disease, acute symptom severity, or diagnostic indication determines whether the patient receives the medical treatment (the exposure).
- Association with outcome: The same underlying indication or baseline illness severity directly worsens or improves the patient’s prognosis, risk of mortality, or adverse event rates (the outcome), entirely independent of any pharmacological action of the treatment.
- Non-intermediacy: The indication existed before treatment initiation and is not an intermediate physiological step caused by the medication.
Because sicker patients receive more aggressive interventions, naive comparisons between treated and untreated groups almost invariably contrast a high-risk cohort against a comparatively healthy cohort. For example, if hospitalized patients who develop acute respiratory distress are prescribed an intravenous corticosteroid while mildly ill patients receive supportive care alone, a crude observational analysis will observe higher 30-day mortality among the steroid-treated patients. The medication did not cause the excess mortality; rather, the underlying clinical indication—severe acute respiratory failure—dictated both drug administration and clinical demise.
Causal Structure, Directed Acyclic Graphs, and Bias Formulas
The causal architecture of confounding by indication is readily represented through Directed Acyclic Graphs (DAGs) and counterfactual potential outcomes notation. In DAG nomenclature, let A represent the treatment or exposure (e.g., medication versus control), Y represent the health outcome (e.g., mortality or clinical event), and L represent the clinical indication, baseline disease severity, or patient prognostic state.
Under confounding by indication, L acts as an open backdoor path between A and Y:
L → A (indication drives treatment prescription)
L → Y (indication independently alters outcome prognosis)
Because arrows point outward from L to both A and Y, L is a classical common cause confounder. Without conditioning or design restriction on L, the backdoor path A ← L → Y remains open, transmitting spurious statistical correlation that mixes with or completely masks the true causal effect A → Y. It is critical to distinguish this structure from effect modification vs. confounding: while effect modification describes biological heterogeneity across subgroups and must be reported, confounding by indication is an analytical distortion that must be eliminated.
In the Neyman-Rubin counterfactual framework, let Ya=1 denote the potential outcome if treated, and Ya=0 denote the potential outcome if untreated. Exchangeability requires potential outcomes to be independent of actual treatment assignment: Ya independent of A. When confounding by indication is present, marginal exchangeability fails:
E[Ya=1 | A = 1] ≠ E[Ya=1 | A = 0]
The treated population has an intrinsically different baseline risk distribution than the untreated population. To restore exchangeability, researchers must achieve conditional exchangeability given measured indications: Ya independent of A | L.
Bias Factor and Sensitivity Formulas
When an observational study does not fully measure clinical severity, an unmeasured indication confounder U distorts the observed crude risk ratio (RRcrude). Following Ding and VanderWeele (2016) and VanderWeele and Ding (2017), the relationship between the observed association and the true causal risk ratio (RRtrue) can be expressed through a multiplicative Bias Factor (BF):
RRcrude = RRtrue × BF
Where the maximum bounding bias factor for a binary unmeasured indication confounder U is parameterized by two parameters:
- RREU: The risk ratio associating the exposure A with the presence of indication confounder U.
- RRUD: The maximum risk ratio relating indication confounder U to disease outcome Y across exposure strata.
The mathematical formulation of the bias factor is:
BF = (RREU × RRUD) / (RREU + RRUD – 1)
To evaluate how robust an observed effect is against unmeasured confounding by indication, researchers calculate the E-value. The E-value is defined as the minimum strength of association on the risk ratio scale that an unmeasured confounder must have with both the treatment and the outcome, conditional on measured covariates, to fully explain away an observed treatment-outcome association. For an observed risk ratio RR > 1, the E-value formula is:
E-value = RRcrude + √(RRcrude × (RRcrude – 1))
For an inverse association where RR < 1, researchers calculate the reciprocal 1 / RR before applying the formula. If an observed study reports an RR of 2.33, the E-value is 2.33 + √(2.33 × 1.33) = 4.10, indicating that an unmeasured clinical severity factor must be associated with both drug prescription and adverse outcome by more than 4.10-fold to reduce the true causal risk ratio to the null value of 1.00.
Confounding by indication example: Worked clinical scenario and arithmetic
To demonstrate exactly how confounding by indication operates and how statistical stratification corrects it, consider a fully worked clinical example with concrete numerical values. Suppose researchers conduct an observational cohort study evaluating whether a newly introduced anticoagulant (Drug A) increases the 1-year incidence of major gastrointestinal bleeding compared to a standard anticoagulant (Drug B) in a population of 2,000 patients with non-valvular atrial fibrillation.
In this clinical context, physicians selectively prescribe the newly introduced Drug A to patients presenting with advanced vascular disease, extensive prior vascular interventions, or documented gastrointestinal frailty (the indication and severity factor). Patients with uncomplicated, mild atrial fibrillation are predominantly prescribed the standard Drug B. Baseline disease severity strongly increases the intrinsic biological risk of major bleeding, regardless of which anticoagulant is administered.
Stratified Cohort Contingency Data
The cohort of 2,000 patients is categorized into two equal clinical strata of 1,000 patients each based on documented baseline vascular severity: Stratum 1 represents Severe Baseline Disease, and Stratum 2 represents Mild Baseline Disease.
| Stratum / Clinical Group | Treatment Group | Major Bleeding Events (Cases) | No Bleeding Events (Non-Cases) | Total Patients | Stratum Risk | Stratum Risk Ratio (RR) |
|---|---|---|---|---|---|---|
| Stratum 1: Severe Baseline Disease | Drug A (High Severity Preference) | 80 | 720 | 800 | 80 / 800 = 10.00% | RR1 = 0.1000 / 0.1000 = 1.0000 |
| Drug B (Comparator) | 20 | 180 | 200 | 20 / 200 = 10.00% | ||
| Stratum 2: Mild Baseline Disease | Drug A (Minority Use) | 4 | 196 | 200 | 4 / 200 = 2.00% | RR2 = 0.0200 / 0.0200 = 1.0000 |
| Drug B (Standard Care) | 16 | 784 | 800 | 16 / 800 = 2.00% | ||
| Pooled Cohort: Crude (Unadjusted) | Drug A (Total Exposed) | 84 | 916 | 1,000 | 84 / 1,000 = 8.40% | RRcrude = 0.0840 / 0.0360 = 2.3333 |
| Drug B (Total Comparator) | 36 | 964 | 1,000 | 36 / 1,000 = 3.60% |
Detailed Step-by-Step Arithmetic and Stratification
Examining the arithmetic within each stratum reveals the true biological effect of Drug A versus Drug B:
- Stratum 1 (Severe Disease): Among patients with severe baseline disease, the risk of bleeding in the Drug A group is 80 / 800 = 0.1000 (10.00%), and the risk in the Drug B group is 20 / 200 = 0.1000 (10.00%). The stratum-specific risk ratio is RR1 = 0.1000 / 0.1000 = 1.0000, and the risk difference is RD1 = 0.1000 – 0.1000 = 0.0000. Drug A causes zero excess bleeding among severe patients.
- Stratum 2 (Mild Disease): Among patients with mild baseline disease, the risk of bleeding in the Drug A group is 4 / 200 = 0.0200 (2.00%), and the risk in the Drug B group is 16 / 800 = 0.0200 (2.00%). The stratum-specific risk ratio is RR2 = 0.0200 / 0.0200 = 1.0000, and the risk difference is RD2 = 0.0200 – 0.0200 = 0.0000. Drug A causes zero excess bleeding among mild patients.
However, when an investigator pools the entire cohort without adjusting for baseline indication severity, the crude numbers appear severely biased:
- Total bleeding events in Drug A: 80 + 4 = 84 events across 1,000 patients (crude incidence: 8.40%).
- Total bleeding events in Drug B: 20 + 16 = 36 events across 1,000 patients (crude incidence: 3.60%).
- Crude Risk Ratio (RRcrude): 0.0840 / 0.0360 = 2.3333 (95% CI: 1.59 to 3.41).
- Crude Risk Difference (RDcrude): 0.0840 – 0.0360 = +0.0480 (+4.80 percentage points).
The unadjusted analysis creates the false illusion that Drug A more than doubles the risk of major bleeding (a 133% relative risk increase, p < 0.001). This entire statistical elevation is an artifact of confounding by indication: 80% (800 / 1,000) of Drug A patients were concentrated in the high-risk severe disease stratum, whereas 80% (800 / 1,000) of Drug B patients were drawn from the low-risk mild stratum.
Mantel-Haenszel Adjusted Risk Ratio Calculation
To eliminate the confounding introduced by baseline indication severity, we compute the Mantel-Haenszel summary risk ratio (RRMH) across the k = 2 strata. The formula combines the stratum-specific 2×2 cell values (ai, bi, ci, di, with n1i = ai + bi, n0i = ci + di, and total Ni = n1i + n0i):
RRMH = [ ∑i=1k (ai × n0i / Ni) ] / [ ∑i=1k (ci × n1i / Ni) ]
Calculating the numerator and denominator contributions for each stratum:
- Stratum 1 Numerator term: (a1 × n01) / N1 = (80 × 200) / 1,000 = 16,000 / 1,000 = 16.00
- Stratum 1 Denominator term: (c1 × n11) / N1 = (20 × 800) / 1,000 = 16,000 / 1,000 = 16.00
- Stratum 2 Numerator term: (a2 × n02) / N2 = (4 × 800) / 1,000 = 3,200 / 1,000 = 3.20
- Stratum 2 Denominator term: (c2 × n12) / N2 = (16 × 200) / 1,000 = 3,200 / 1,000 = 3.20
Summing across both strata:
RRMH = (16.00 + 3.20) / (16.00 + 3.20) = 19.20 / 19.20 = 1.0000
The Mantel-Haenszel adjustment completely removes the confounding by indication, collapsing the spurious 2.33 crude risk ratio back to the true underlying value of 1.0000 (95% CI: 0.69 to 1.45). This classical manifestation of Simpson’s reversal demonstrates why unadjusted observational drug safety evaluations are fundamentally unreliable when baseline prescribing preferences differ between clinical cohorts.
Interpretation and Reading Guidance for Biased vs. Adjusted Estimates
Interpreting study findings affected by confounding by indication requires researchers and clinicians to assess both the direction and magnitude of the discrepancy between unadjusted and adjusted effect estimates. In the epidemiological literature, confounding by indication manifests in three distinct directional forms:
- Confounding away from the null (Spurious Harm): Occurs when the indication increases the likelihood of an adverse health event and is positively associated with treatment. As shown in our anticoagulant worked example, an effective or neutral drug appears overtly hazardous because sicker patients receive it.
- Confounding towards the null (Masked Efficacy): Occurs when the treatment is genuinely beneficial, but patients prescribed the drug have substantially worse initial prognoses. The drug’s true protective benefit is offset by the patient’s baseline excess hazard, making an effective treatment appear clinically inert.
- Qualitative Confounding (Simpson’s Paradox): The most extreme distortion, where the crude association points in the opposite direction of the true causal effect (e.g., crude RR = 1.40 indicating increased risk, while adjusted RR = 0.70 demonstrating substantial therapeutic protection).
| Crude vs. Adjusted Pattern | Direction of Bias | Clinical Prescribing Mechanism | Epidemiologic Interpretation |
|---|---|---|---|
| Crude RR > 1.0; Adjusted RR ≈ 1.0 | Positive bias (Away from null) | High-severity patients preferentially prescribed treatment | Treatment has no causal effect; observed crude harm is fully driven by baseline disease severity. |
| Crude RR ≈ 1.0; Adjusted RR < 1.0 | Negative bias (Towards null) | Severely ill patients receive therapy aimed at preventing mortality | True therapeutic benefit was completely masked by high baseline event rates among treated patients. |
| Crude RR > 1.0; Adjusted RR < 1.0 | Qualitative inversion (Simpson’s Paradox) | Intense preferential channeling of deteriorating patients to innovative drug | Drug is protective; failing to control for clinical indication creates the false impression of net harm. |
| Crude RR < 1.0; Adjusted RR ≈ 1.0 | Negative bias (Healthy-user bias) | Adherent, health-conscious, or low-frailty patients receive preventative agent | Observed protection reflects patient health-seeking behavior and milder baseline risk, not drug efficacy. |
Confounding by Indication vs. Confounding by Severity vs. Protopathic Bias
To ensure terminological rigor, modern pharmacoepidemiology distinguishes confounding by indication from related observational biases, as formalized by Salas, Hofman, and Stricker (1999):
- Confounding by indication (broad sense): The presence of the primary diagnosis itself serves as the confounder. For instance, comparing epileptic patients prescribed an anticonvulsant against general population non-users to assess cognitive decline is confounded simply by the diagnosis of epilepsy.
- Confounding by severity (narrow sense): All patients in the study share the same underlying diagnostic indication, but differing degrees of severity, chronicity, or functional impairment determine drug selection. For example, comparing two classes of antihypertensives where stage 3 hypertension patients receive combination therapies while stage 1 patients receive monotherapy represents confounding by severity.
- Protopathic bias (reverse causality): Occurs when a medication is initiated to treat early, undiagnosed symptoms of an outcome that has already begun biologically but remains clinically unrecorded. For example, a patient experiencing subclinical gastric discomfort takes an over-the-counter analgesic shortly before being diagnosed with gastric carcinoma. The analgesic did not cause the malignancy; early tumor development caused analgesic consumption.
Methodological Strategies: Mitigating Confounding by Indication in Design and Analysis
Because confounding by indication is deeply embedded in clinical practice, observational studies must employ structured methodological safeguards across both study design and statistical analysis phases. The data table below compares the core properties, assumptions, and resistance to unmeasured confounding across these methods.
Study Design Solutions
- Active-Comparator New-User (ACNU) Design: Considered the methodological gold standard in modern comparative effectiveness and real-world evidence research (Ray, 2003; Schneeweiss et al., 2007). Instead of comparing drug initiators to unmedicated controls, researchers restrict the cohort strictly to incident new users of two alternative medications approved for the exact same clinical indication. Because all study subjects have reached the clinical threshold requiring pharmacological treatment, baseline disease severity, physician visit patterns, and diagnostic testing are far more balanced.
- Target Trial Emulation: Formulated by Hernán and Robins, target trial emulation requires investigators to write a hypothetical randomized trial protocol before analyzing observational data. By strictly enforcing identical eligibility criteria at ‘time zero’ (the moment treatment is initiated), target trial emulation eliminates immortal time bias and restricts confounding by indication to documented baseline factors.
- Restriction: Investigators restrict the study sample to a narrow, clinically homogenous subpopulation. While restriction reduces generalizability, it structurally eliminates variation in indication severity across cohorts.
Statistical and Analytical Solutions
- Propensity Score Methods: The propensity score, introduced by Rosenbaum and Rubin (1983), is the conditional probability of receiving a specific treatment given measured baseline covariates: e(X) = P(A = 1 | X). Propensity score matching, stratification into deciles, or Inverse Probability of Treatment Weighting (IPTW) balances the multidimensional distribution of measured clinical indications between exposure groups.
- Instrumental Variable (IV) Analysis: An instrumental variable Z is an exogenous factor that predicts treatment assignment A, affects outcome Y solely through A (exclusion restriction), and shares no common causes with Y (independence). In clinical epidemiology, common instruments include regional variation in prescribing practice, hospital formulary preferences, or physician-level prescribing tendencies. When valid, IV methods can eliminate both measured and unmeasured confounding by indication.
- Negative Control Exposures and Outcomes: Researchers identify a secondary exposure or outcome known on biological grounds to have no causal relationship with the study variables. If an observational model demonstrates that a drug is statistically associated with a negative control outcome, residual confounding by indication or general frailty is empirically demonstrated.
- Quantitative Bias Analysis (QBA): As recommended by epidemiological guidelines, researchers calculate E-values or perform sensitivity analyses to determine how strong an unmeasured indication confounder would need to be to overturn the study’s conclusions.
Assumptions, Diagnostic Checks, and Common Methodological Mistakes
Attempting to adjust for confounding by indication relies on rigorous epidemiologic assumptions. When these assumptions are violated, analytical models can introduce additional distortion rather than removing bias.
Core Methodological Assumptions
- Conditional Exchangeability (No Unmeasured Confounding): Assumes that conditional on the measured covariates L, potential outcomes are independent of treatment: Ya independent of A | L. This assumption is untestable using observational data alone. If physicians prescribe based on clinical intuition, bedside frailty, or functional status that is absent from administrative billing databases, residual confounding by indication persists.
- Positivity (Common Support): Assumes that every individual within each covariate stratum has a non-zero probability of receiving either treatment: 0 < P(A = 1 | L = l) < 1 for all l. In severe clinical contraindications, positivity fails completely, creating structural confounding where groups cannot be balanced.
- Correct Model Specification: Assumes the propensity score model or multivariable outcome model correctly captures non-linear relationships and interactions among clinical indication variables.
Diagnostic Balance Checks
Researchers must verify covariate balance after propensity score matching or IPTW adjustment using the Standardized Mean Difference (SMD) rather than hypothesis test p-values. The SMD for a continuous covariate is computed as:
SMD = | X̄treated – X̄control | / √( (streated2 + scontrol2) / 2 )
An SMD below 0.10 (10%) is the internationally accepted standard indicating adequate covariate balance between clinical groups. In contrast, p-values should not be used to assess balance because in massive real-world database cohorts, clinically trivial differences of 0.5% achieve statistical significance (p < 0.001) due to sample size alone.
Common Methodological Mistakes
- Conditioning on Post-Treatment Variables (Collider Bias): Controlling for clinical symptoms or laboratory values measured after therapy initiation can block the treatment effect or open spurious collider pathways. Confounders must be strictly measured during the baseline pre-treatment window.
- Non-User Comparisons: Comparing drug users against unmedicated controls introduces severe indication mismatch and healthy-user bias. Untreated individuals often have contraindications, lack access to care, or suffer milder disease.
- Over-Reliance on Propensity Scores: Believing that propensity score matching removes unmeasured confounding. Propensity scores balance only measured covariates; they do not balance unmeasured prognostic indicators.
- Ignoring Immortal Time Bias: Defining exposure status using information collected after baseline cohort entry, which artificially inflates survival in the treated cohort.
How to Report Confounding by Indication in Research (APA 7th Edition Format)
Reporting observational comparative studies in academic journals requires transparent documentation of potential confounding by indication in accordance with the STROBE (Strengthening the Reporting of Observational Studies in Epidemiology) guidelines and the RECORD-PE (Reporting of Studies Conducted Using Observational Routinely Collected Health Data for Pharmacoepidemiology) statement. Reports must present crude associations, describe adjustment strategies, report covariate balance metrics, and quantify sensitivity to unmeasured bias.
Sample Methodological Reporting Paragraph
“To address potential confounding by indication arising from non-random treatment allocation, we implemented an active-comparator, new-user cohort design, comparing incident initiators of Drug A directly to incident initiators of Drug B. Propensity scores were estimated using multivariable logistic regression incorporating 34 pre-treatment baseline covariates, including demographic characteristics, clinical severity indices, comorbid cardiovascular diagnoses, and prior healthcare utilization metrics recorded during the 365-day pre-index baseline window. Propensity scores were matched 1:1 using nearest-neighbor greedy matching with a caliper width of 0.2 of the standard deviation of the logit of the propensity score. Covariate balance before and after matching was assessed using standardized mean differences (SMDs), with balance defined as an SMD < 0.10 across all measured variables. To evaluate vulnerability to unmeasured clinical severity, we calculated the E-value for the point estimate and lower confidence limit."
Sample Results Reporting Paragraph
“In the unadjusted cohort (N = 2,000), Drug A was associated with a higher crude risk of major bleeding compared to Drug B (8.40% vs. 3.60%; crude RR = 2.33, 95% CI [1.59, 3.41], p < .001). However, patients receiving Drug A exhibited markedly higher baseline clinical severity (pre-match SMD for advanced vascular disease = 1.33). Following 1:1 propensity score matching, all measured baseline covariates achieved excellent balance (all post-match SMDs < 0.05). In the matched cohort, the risk of major bleeding was identical between groups (adjusted RR = 1.00, 95% CI [0.69, 1.45], p = .99), demonstrating that the elevated crude risk was entirely attributable to confounding by indication. Sensitivity analysis yielded an E-value of 4.10 for the crude point estimate, indicating that an unmeasured clinical confounder would require a risk ratio association of at least 4.10 with both treatment selection and bleeding risk to fully explain the observed crude distortion.”
How to Calculate and Adjust for Confounding by Indication in R, Python, and Excel
Implementing adjustment for confounding by indication can be performed across statistical programming environments. Below are concise, production-ready code implementations for R and Python, alongside precise Excel spreadsheet formulas.
R Implementation
# 1. Stratified 2x2 contingency table for Mantel-Haenszel test
strata_array <- array(
c(80, 720, 20, 180, # Stratum 1: Severe (A_case, A_non, B_case, B_non)
4, 196, 16, 784), # Stratum 2: Mild (A_case, A_non, B_case, B_non)
dim = c(2, 2, 2),
dimnames = list(
Outcome = c("Bleed", "NoBleed"),
Treatment = c("DrugA", "DrugB"),
Indication = c("Severe", "Mild")
)
)
# Compute Mantel-Haenszel pooled estimate
mh_test <- mantelhaen.test(strata_array)
print(mh_test)
# 2. Multivariable log-binomial regression for adjusted Risk Ratio
# fit <- glm(bleed ~ treatment + indication_severity, data = cohort, family = binomial(link = "log"))
# summary(fit)
# exp(coef(fit))
# 3. Calculate E-value for sensitivity analysis
# evalue_rr <- function(rr) rr + sqrt(rr * (rr - 1))
# evalue_rr(2.3333) # Returns 4.097
Python Implementation
import math
def calculate_confounding_metrics(strata):
tot_a, tot_n1, tot_c, tot_n0 = 0, 0, 0, 0
mh_num, mh_den = 0.0, 0.0
print("--- Stratum-Specific Results ---")
for i, s in enumerate(strata, 1):
a, n1, c, n0 = s['a'], s['n1'], s['c'], s['n0']
N = n1 + n0
r1, r0 = a / n1, c / n0
rr = r1 / r0
print(f"Stratum {i}: Risk_Exp={r1:.4f}, Risk_Unexp={r0:.4f}, RR={rr:.4f}")
tot_a += a; tot_n1 += n1; tot_c += c; tot_n0 += n0
mh_num += (a * n0) / N
mh_den += (c * n1) / N
crude_r1 = tot_a / tot_n1
crude_r0 = tot_c / tot_n0
rr_crude = crude_r1 / crude_r0
rr_mh = mh_num / mh_den
e_val = rr_crude + math.sqrt(rr_crude * (rr_crude - 1.0))
print("n--- Pooled Results ---")
print(f"Crude Risk Ratio: {rr_crude:.4f}")
print(f"Mantel-Haenszel Adjusted Risk Ratio: {rr_mh:.4f}")
print(f"E-value (Point Estimate): {e_val:.3f}")
return {"rr_crude": rr_crude, "rr_mh": rr_mh, "e_value": e_val}
data = [
{'a': 80, 'n1': 800, 'c': 20, 'n0': 200}, # Severe
{'a': 4, 'n1': 200, 'c': 16, 'n0': 800} # Mild
]
res = calculate_confounding_metrics(data)
Excel Spreadsheet Instructions
To compute crude and Mantel-Haenszel adjusted risk ratios in Microsoft Excel or Google Sheets:
- Data cells: In cells A2:D2 enter Stratum 1: A2 = 80 (Drug A cases), B2 = 800 (Drug A total), C2 = 20 (Drug B cases), D2 = 200 (Drug B total). In cells A3:D3 enter Stratum 2: 4, 200, 16, 800.
- Stratum totals and risks: In cell E2, enter total stratum size:
=B2+D2(1000). In F2, enter Drug A risk:=A2/B2(0.10). In G2, enter Drug B risk:=C2/D2(0.10). In H2, enter stratum RR:=F2/G2(1.00). Copy these formulas to row 3. - Crude Risk Ratio: In cell B5, enter pooled Drug A risk:
=SUM(A2:A3)/SUM(B2:B3)(0.084). In D5, enter pooled Drug B risk:=SUM(C2:C3)/SUM(D2:D3)(0.036). In F5, enter Crude RR:=B5/D5(2.3333). - Mantel-Haenszel Components: In cell I2, enter numerator term:
=(A2*D2)/E2(16.0). In J2, enter denominator term:=(C2*B2)/E2(16.0). Copy down to row 3 (3.2 in both). - Adjusted Summary RR: In cell K5, enter adjusted RR:
=SUM(I2:I3)/SUM(J2:J3)(1.0000). - E-value: In cell L5, enter E-value:
=F5+SQRT(F5*(F5-1))(4.097).
Frequently asked questions
What is the difference between confounding by indication and selection bias?
Confounding by indication is an exchangeability failure where baseline prognosis predicts both treatment assignment and the outcome, whereas selection bias occurs when conditioning on a common effect (a collider) or conditioning on study participation distorts the sample relationship. Confounding by indication exists in the source population due to physician prescribing behavior, whereas selection bias is frequently introduced by the study design, loss to follow-up, or restrictive participant sampling.
How does confounding by indication differ from protopathic bias?
Confounding by indication involves prescribing a medication to manage a recognized disease condition or severity state that is an independent risk factor for future health outcomes. Protopathic bias, or reverse causality, occurs when a drug is inadvertently prescribed to treat early, undiagnosed symptoms of the study outcome itself before that outcome is officially detected, falsely making the drug appear to trigger the disease.
Can randomized controlled trials experience confounding by indication?
In a properly executed randomized controlled trial (RCT), random assignment guarantees marginal exchangeability between study arms at baseline, which eliminates confounding by indication. However, if investigators perform observational post-randomization analyses—such as evaluating compliance-adjusted per-protocol cohorts or studying secondary treatments initiated during follow-up—confounding by indication can re-emerge because treatment adherence and rescue therapies are selected based on patient clinical status.
Why do propensity scores fail to remove unmeasured confounding by indication?
Propensity scores can only balance measured baseline covariates included in the modeling process. In real-world healthcare datasets, physicians frequently make prescription decisions based on clinical nuances, bedside observations of patient frailty, or functional decline that are never coded in administrative claims or billing systems. Because unmeasured severity remains unadjusted, residual confounding by indication persists regardless of propensity score sophistication.
What is an active-comparator new-user design and why does it prevent confounding by indication?
An active-comparator new-user design restricts observational cohorts to patients who are initiating one of two competing pharmacological agents for the same therapeutic indication. By requiring all patients to have reached the clinical decision threshold for drug initiation and comparing them against an active drug rather than an unmedicated group, baseline disease stage, health-seeking behavior, and clinical monitoring are substantially aligned, drastically attenuating confounding by indication.
What is an E-value and how is it used to assess confounding by indication?
The E-value is an epidemiological sensitivity metric that quantifies the minimum risk ratio association that an unmeasured confounder must have with both the exposure and the outcome, conditional on measured covariates, to completely nullify an observed treatment-outcome association. In studies threatened by confounding by indication, researchers report the E-value to demonstrate how strong unmeasured clinical severity would have to be to overturn their findings.
Sources
- Aronson, J. K., Bankhead, C., Mahtani, K. R., & Nunan, D. (2018). Confounding by indication. Catalogue of Biases. https://catalogofbias.org/biases/confounding-by-indication/ (Accessed 2026-11-15)
- Ding, P., & VanderWeele, T. J. (2016). Sensitivity analysis in observational research: Introducing the E-value. Annals of Internal Medicine, 165(11), 819–820. https://doi.org/10.7326/M16-2607 (Accessed 2026-11-15)
- Grobbee, D. E., & Hoes, A. W. (1997). Confounding and indication for treatment in evaluation of drug effects. BMJ, 315(7116), 1151–1154. https://doi.org/10.1136/bmj.315.7116.1151 (Accessed 2026-11-15)
- Hernán, M. A., & Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC. https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/ (Accessed 2026-11-15)
- Miettinen, O. S. (1983). The need for randomization in the study of intended effects. Statistics in Medicine, 2(2), 267–271. https://doi.org/10.1002/sim.4780020223 (Accessed 2026-11-15)
- Ray, W. A. (2003). Evaluating medication effects outside of clinical trials: new-user designs. American Journal of Epidemiology, 158(9), 915–920. https://doi.org/10.1093/aje/kwg231 (Accessed 2026-11-15)
- Salas, M., Hofman, A., & Stricker, B. H. (1999). Confounding by indication: an example of variation in the use of epidemiologic terminology. American Journal of Epidemiology, 149(11), 981–983. https://doi.org/10.1093/oxfordjournals.aje.a009765 (Accessed 2026-11-15)
- Schneeweiss, S. (2007). A basic guide to sensitivity analysis of unmeasured confounders for healthcare database studies. Journal of Clinical Epidemiology, 60(6), 578–586. https://doi.org/10.1016/j.jclinepi.2007.03.018 (Accessed 2026-11-15)
- VanderWeele, T. J., & Ding, P. (2017). Sensitivity analysis in observational research: Introducing the E-value. Annals of Internal Medicine, 167(4), 268–274. https://doi.org/10.7326/M16-2607 (Accessed 2026-11-15)
Data: Methods for Mitigating Confounding by Indication in Observational Studies
A structured methodological comparison of study design and statistical analysis strategies used in epidemiology and comparative effectiveness research to control for confounding by indication, compiled from peer-reviewed pharmacoepidemiologic literature and methodological guidelines.
| Method | Lifecycle Phase | Primary Mechanism | Key Identifying Assumption | Protection Against Unmeasured Confounders | Data Requirements |
|---|---|---|---|---|---|
| Active-Comparator New-User (ACNU) Design | Study Design | Compares incident users of an alternative agent indicated for the identical clinical condition | Interchangeable treatment indication and comparable baseline disease stage between drug cohorts | Moderate | Incident cohort definition, active comparator therapy, and documented pre-treatment baseline window |
| Propensity Score Matching and Weighting | Statistical Analysis | Balances measured multidimensional baseline indication factors and prognostic covariates | No unmeasured confounding (conditional exchangeability) and positivity across treatment groups | Low | Rich electronic health record or claims covariates capturing physician prescribing determinants |
| Multivariable Regression Adjustment | Statistical Analysis | Directly adjusts for measured severity indicators and clinical risk scores in regression models | Correct functional form and complete measurement of all prognostic indication variables | Low | Sufficient event counts per variable and validated clinical severity scales |
| Instrumental Variable (IV) Analysis | Statistical Analysis | Exploits an exogenous determinant of treatment assignment (e.g., regional or provider prescribing preference) | Instrument relevance, independence from unmeasured confounders, and exclusion restriction | High | Valid instrument strongly associated with exposure but with no independent link to outcome |
| Prior Event Rate Ratio (PERR) Adjustment | Statistical Analysis | Calculates pre-treatment outcome rates to adjust post-treatment hazard ratios for baseline frailty | Unmeasured confounder association with outcome remains constant across pre- and post-exposure windows | Moderate | Longitudinal pre-exposure observation window with comprehensive event recording |
| Quantitative Bias Analysis (E-value) | Sensitivity Analysis | Computes minimum strength of unmeasured indication confounder required to nullify the observed association | Explicit mathematical bounds on confounder-exposure and confounder-outcome risk ratios | High (Diagnostic) | Observed point estimate and confidence interval limits |
Sources
- Catalogue of Bias: Confounding by indication (accessed 2026-11-15)
- BMJ: Confounding and indication for treatment in evaluation of drug effects (accessed 2026-11-15)
- American Journal of Epidemiology: Evaluating medication effects outside of clinical trials: new-user designs (accessed 2026-11-15)
- Journal of Clinical Epidemiology: A basic guide to sensitivity analysis of unmeasured confounders (accessed 2026-11-15)
- Annals of Internal Medicine: Sensitivity analysis in observational research: Introducing the E-value (accessed 2026-11-15)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







