Skip to content

Methods · Causal inference · Heterogeneous treatment effects

R-Learner for Heterogeneous Treatment Effects

The R-learner estimates how a treatment effect varies with covariates by regressing outcome residuals on treatment residuals, where both residuals come from cross-fitted predictions. Minimising this residual-on-residual loss makes the effect estimate insensitive to small errors in the prediction models.

R-러너는 교차적합으로 얻은 결과 잔차를 처치 잔차에 회귀하여 처치효과가 공변량에 따라 어떻게 달라지는지 추정합니다. 이 잔차 대 잔차 손실을 최소화하면 예측모형의 작은 오차에 효과 추정이 덜 민감해집니다.

For whom does the treatment work better or worse, after flexibly adjusting for confounders?

교란변수를 유연하게 보정한 뒤 처치가 누구에게 더 잘 듣거나 덜 들을까요?

The expected outcome and the probability of treatment given covariates are predicted out of fold with machine learning. The residual of the outcome is then explained by the residual of treatment times an effect function of the covariates, either a linear function with robust standard errors and a joint test of heterogeneity or a boosted function. A single constant-effect estimate is reported alongside.

When to use R-Learner for Heterogeneous Treatment Effects

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The R-learner estimated an average conditional effect of [value] (95% CI [value] to [value]); effect modification was significant, chi2([value]) = [value], p = [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with scikit-learn and statsmodels at a stated tolerance of 1e-6.

    독립 계산. scikit-learn·statsmodels 대조 참조 시험 1건 통과(허용오차 1e-6).

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 R-Learner for Heterogeneous Treatment Effects on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a treatment indicator and predictor (feature) columns
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 Q81111 · Reviewed 2026-10-25