Control Function and Two-Stage Residual Inclusion
The control function approach regresses an endogenous regressor on instruments and controls, then adds the first-stage residual to the outcome model so that the coefficient of interest is corrected and the residual's coefficient tests endogeneity.
통제함수 접근법은 내생 설명변수를 도구변수와 통제변수로 회귀한 1단계 잔차를 결과모형에 추가해 관심 계수를 보정하고, 잔차 계수로 내생성을 검정하는 방법입니다.
My key regressor is endogenous and the outcome is binary; how do I use an instrument when two-stage least squares is not appropriate for a probit model?
핵심 설명변수가 내생적이고 결과가 이분형인데, 프로빗 모형에서 도구변수를 어떻게 써야 하나요?
Regress the endogenous variable on the instruments and controls, save the residual, and include it as an extra regressor in the probit, logit, Poisson or Tobit outcome model (two-stage residual inclusion). The t or z test on the residual is the Rivers-Vuong or Smith-Blundell exogeneity test, and standard errors should be bootstrapped over both stages.
When to use Control Function and Two-Stage Residual Inclusion
- The outcome model is non-linear (binary, count or censored) and a regressor is endogenous.
- You want a regression-based test of whether the regressor is actually endogenous.
- You need average partial effects rather than index coefficients.
When to use something else
- The outcome model is linear and you only need the coefficient; two-stage least squares gives the same estimate.
- Instruments are weak (first-stage F well below 10); use weak-instrument-robust inference such as the Anderson-Rubin test.
Assumptions and requirements
- Instruments are relevant and excluded from the outcome equation.
- The first stage is linear in the instruments and controls.
- The outcome model family is correctly specified.
What the analysis reports
- Outcome-model coefficients with model-based and bootstrap SEs
- Endogeneity test on the residual
- First-stage F for the excluded instruments
- Average partial effect of the endogenous regressor
How to report it
Using [value] as instruments (first-stage F([value], [value]) = [value]), the control-function probit gave a coefficient of [value] for [variable] (bootstrap SE = [value]) and an average partial effect of [value]; the Rivers-Vuong test on the residual gave z = [value], p = [value].
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Control Function and Two-Stage Residual Inclusion itself, at the same price.
- IV probit (maximum likelihood) — model set to “probit”; estimator set to “ml”
- IV probit two-step (Newey) — model set to “probit”; estimator set to “twostep”
- IV tobit (maximum likelihood) — model set to “tobit”; estimator set to “ml”
- Endogenous treatment effects by control function (eteffects) — model set to “linear”; estimator set to “eteffects”
- Linear regression with an endogenous binary regressor (ML) — model set to “linear”; estimator set to “ml”
Related methods
- Two-Stage Least Squares (2SLS)
- Weak Instrument Diagnostics and LIML
- Heckman Two-Stage Selection Model
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and linearmodels.
독립 계산. SciPy·linearmodels 대조 참조 시험 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 Control Function and Two-Stage Residual Inclusion on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a treatment indicator
- 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.