Skip to content

Methods · Mediation & moderation · Causal mediation

Causal Mediation Analysis under Case-Control Sampling

In a case-control study, sampling depends on the outcome, so a mediator model fitted to everyone would be distorted. The method fits the mediator model among controls, which represent the source population when the disease is rare, or weights cases and controls by the known prevalence, and combines it with a logistic outcome model to give natural direct and indirect effects as odds ratios.

환자-대조군 연구에서는 결과에 따라 표본을 뽑으므로 모든 대상자로 적합한 매개변수 모형이 왜곡됩니다. 이 방법은 질병이 드물 때 원천 인구를 대표하는 대조군만으로 매개변수 모형을 적합하거나, 알려진 유병률로 환자와 대조군에 가중치를 주고, 로지스틱 결과 모형과 결합해 자연 직접효과와 간접효과를 오즈비로 구합니다.

In my case-control data, how much of the exposure's association with disease runs through the mediator?

제 환자-대조군 자료에서 노출과 질병의 연관 가운데 얼마가 매개변수를 거칩니까?

The output gives the controlled direct, natural direct, natural indirect and total effect odds ratios with delta-method confidence intervals and p-values, the proportion mediated, and how the mediator model was fitted.

When to use Causal Mediation Analysis under Case-Control Sampling

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Among [value] cases and [value] controls the natural indirect effect odds ratio was [value] (95% CI [value] to [value]) and the natural direct effect odds ratio was [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 2 reference tests compare the results with statsmodels and direct computations (formulas, enumeration or simulation).

    독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Causal Mediation Analysis under Case-Control Sampling on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a treatment indicator and mediator
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q43007 · Reviewed 2026-10-25