Skip to content

Methods · Biostatistics · Survival analysis

Mantel-Byar Test for a Time-Dependent Exposure

The Mantel-Byar test compares survival between exposed and unexposed person-time when subjects can start the exposure part-way through follow-up, such as receiving a transplant. Each subject counts as unexposed until the exposure starts and as exposed afterwards.

맨텔-바이어 검정은 이식처럼 추적 도중에 노출이 시작될 수 있을 때, 노출 시작 전은 비노출로 그 후는 노출로 셈하여 두 상태의 생존을 비교하는 검정입니다.

Does starting this exposure change the hazard, once immortal time before exposure is credited to the unexposed state?

노출 시작 전의 불멸 시간을 제대로 처리했을 때도 이 노출이 위험을 바꿀까요?

At every event time the numbers at risk in the exposed and unexposed states are recounted with each subject's current status, and the observed versus expected exposed events are summed as in a log-rank test. The report gives the chi-square, the observed/expected ratio, crude event rates per person-time in each state and, for contrast, the naive ever-versus-never comparison that suffers from immortal-time bias.

When to use Mantel-Byar Test for a Time-Dependent Exposure

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Treating exposure as time-dependent, the Mantel-Byar test gave chi-square(1) = [value], p = [value] (observed/expected = [value]); the naive comparison suggested a stronger effect (chi-square = [value]), reflecting immortal-time bias.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with lifelines and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-8.

    독립 계산. lifelines·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-8).

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 Mantel-Byar Test for a Time-Dependent Exposure on Quorant

Data you need
a table (CSV or Excel) with a time variable, an event indicator and a treatment indicator
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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 Q98013 · Reviewed 2026-10-25