Skip to content

Methods · Mediation & moderation · Causal mediation

Causal Mediation Analysis for Time-to-Event Outcomes (Cox and AFT)

Natural direct and indirect effects of an exposure on a time-to-event outcome are obtained by combining a mediator regression with a Cox or accelerated failure time outcome model that may include an exposure-mediator interaction. Effects are ratios: hazard ratios for the Cox model, valid when the event is rare, and ratios of mean survival times for the AFT model.

매개변수 회귀와, 노출-매개변수 상호작용을 넣을 수 있는 콕스 또는 가속실패시간 결과 모형을 결합해 사건 발생 시간에 대한 노출의 자연 직접효과와 간접효과를 구합니다. 효과는 비로 나타내며, 콕스 모형에서는 사건이 드물 때 성립하는 위험비, 가속실패시간 모형에서는 평균 생존시간의 비입니다.

How much of an exposure's effect on survival or time to an event works through a mediator?

노출이 생존이나 사건 발생 시간에 미치는 효과 가운데 얼마가 매개변수를 거칩니까?

The output gives the controlled direct, natural direct, natural indirect and total effects as hazard ratios or survival-time ratios with delta-method confidence intervals and p-values, and the proportion mediated.

When to use Causal Mediation Analysis for Time-to-Event Outcomes (Cox and AFT)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The natural indirect effect hazard ratio was [value] (95% CI [value] to [value]) and the natural direct effect hazard ratio was [value]; the proportion mediated was [value].

Related methods

How this method is validated

이 방법의 검증 근거

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

    독립 계산. lifelines·직접 계산(식·열거·모의실험) 대조 참조 시험 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 for Time-to-Event Outcomes (Cox and AFT) on Quorant

Data you need
a table (CSV or Excel) with a time variable, an event indicator, 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 Q43006 · Reviewed 2026-10-25