Methods · Causal inference · Instrumental variables

Two Stage Least Squares (2SLS)

Two-stage least squares (2SLS) is an instrumental variable estimator that first predicts an endogenous treatment from an instrument and then regresses the outcome on that prediction to estimate a causal effect.

2단계 최소제곱법(2SLS)은 먼저 도구변수로 내생적 처치를 예측하고 그 예측값에 결과변수를 회귀하여 인과효과를 추정하는 도구변수 추정법이다.

How do I estimate a causal effect when the treatment is endogenous or confounded by unobserved factors?

처치가 내생적이거나 관측되지 않은 요인에 의해 교란될 때 인과효과를 어떻게 추정하나요?

Two-stage least squares uses an instrument that shifts the treatment but affects the outcome only through the treatment, removing bias from unobserved confounding. It fits observational data with a credible instrument, and the first-stage F-statistic is reported to check instrument strength.

When to use Two Stage Least Squares (2SLS)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The instrument was strong (first-stage F = [value]), and the 2SLS estimate indicated that [treatment] increased [outcome] by [value] (SE = [value], p = [value]).

Related methods

Run Two Stage Least Squares (2SLS) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a treatment indicator and instrument
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
Python results are cross-checked against R reference outputs in every deployment
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 Q81002 · Reviewed 2026-10-25