Skip to content

Methods · Causal inference · Treatment regimes

Dynamic Treatment Regimes (Q-Learning and A-Learning)

Dynamic treatment regime estimation by Q-learning or A-learning works backward from the last decision stage, modelling how treatment benefit depends on patient history to find the decision rules with the best expected outcome.

Q-학습·A-학습에 의한 동적 처치 체계 추정은 마지막 결정 단계부터 거꾸로, 환자 이력에 따라 처치 이득이 어떻게 달라지는지 모형화해 기대 결과가 가장 좋은 단계별 결정 규칙을 찾는 방법입니다.

Patients are treated at two decision points and I want to know which patients should get the treatment at each point to maximise the final outcome.

환자가 두 번의 결정 시점에서 치료를 받는데, 최종 결과를 가장 좋게 하려면 각 시점에 어떤 환자에게 치료해야 할까요?

Starting at the last stage, regress the outcome on the history with a treatment-by-history contrast, set each unit's pseudo-outcome to the value under the better choice, and repeat at the earlier stage (Q-learning); A-learning estimates only the contrast with a propensity-weighted equation. The fitted contrasts give the decision rules, and the value of the estimated optimal regime is compared with always and never treating.

When to use Dynamic Treatment Regimes (Q-Learning and A-Learning)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Q-learning over [value] stages estimated the value of the optimal regime as [value] (95% bootstrap CI [value] to [value]) versus [value] for always treating and [value] for never treating; at stage 1 treatment was recommended when [rule].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation).

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

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 Dynamic Treatment Regimes (Q-Learning and A-Learning) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a treatment indicator, predictor (feature) columns, a time variable and a unit (entity) ID
Price
600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 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 Q81048 · Reviewed 2026-10-25