Why a Control Function Is Needed
In a nonlinear outcome model, treatment endogeneity cannot generally be handled by replacing treatment with its first-stage fitted value. The fitted value does not, by itself, account for the dependence between treatment and unobserved determinants of the outcome. A control function takes a different route: it uses information from the first stage to construct a variable that, under explicit conditions, captures the relevant part of that dependence. The outcome model then conditions on this control as well as on treatment.
The key point is conditional, not automatic. A first-stage residual is useful only if conditioning on it adequately controls the association between treatment and the unobserved outcome determinants. The link function, the way residuals enter the outcome model, and the first-stage specification must also be appropriate. Without those conditions, residual inclusion is just another potentially misspecified regression.
Conditions Behind the Logic
Let \(Y(d)\) denote the outcome that would be observed under treatment level \(d\), \(D\) the received treatment, \(Z\) an instrument, and \(X\) observed covariates. A useful control-function argument has several parts.
- Instrument validity. Conditional on \(X\), \(Z\) is independent of the potential outcomes and the unobserved variables governing treatment assignment. The instrument also has no direct effect on the outcome except through treatment.
- Relevance and support. The distribution of treatment changes with \(Z\), and the data provide adequate overlap to estimate the outcome model at the treatment and control values of interest.
- A correctly specified first stage. The first stage describes treatment as a function of \(Z\), \(X\), and unobserved treatment variation. For example, \(D=m(Z,X)+V\), with \(E[V\mid Z,X]=0\), defines a residual \(V=D-m(Z,X)\). The conditional mean \(m\) and residual construction must fit the treatment process.
- Control sufficiency. Conditional on \(V\) and \(X\), treatment assignment contains no further information about the potential outcome: \(Y(d)\perp D\mid V,X\). This is the substantive condition that makes residual conditioning useful.
- A suitable outcome model. The conditional distribution or mean of \(Y\) given \(D,X,V\) must have the chosen functional form. For a probit model, for example, the outcome probability is modeled through the standard normal cumulative distribution function with a specified index in \(D,X,V\).
The last two conditions are not consequences of using an instrument. Instrument validity does not prove that a particular residual is sufficient, or that a linear residual term is the correct way to model its effect. Those are additional modeling assumptions. In particular, a residual from a linear first stage is not automatically appropriate when the treatment process is nonlinear or discrete.
Deriving the Conditional Outcome Model
The derivation makes clear what the residual must accomplish. Suppose the structural conditional response at treatment \(d\), covariates \(x\), and unobserved outcome determinant \(U\) is described by a function \(q(d,x,U)\). Assume the instrument is excluded from this outcome response, and that the residual \(V\) is a sufficient control: the conditional distribution of \(U\) given \(D,Z,X\) depends on those variables only through \(V,X\). Then
The first equality averages the structural response over the distribution of unobserved outcome determinants among observations with the stated treatment and covariates. The second uses the control-sufficiency condition. The final expression shows that, after conditioning on \(V\) and \(X\), the conditional outcome response can be modeled as a function of treatment and the control, rather than as a function of the instrument itself.
For a binary outcome, one possible specification is a probit conditional mean:
where \(\Phi\) is the standard normal cumulative distribution function. This equation is a functional-form assumption about the conditional probability. It does not follow merely from the existence of a first-stage residual. Also, \(\beta_D\) describes the treatment term in the conditional probit index; the probability-scale effect depends on the values of \(D,X,V\), so the coefficient is not itself a constant probability change.
Choose a first-stage model justified for the treatment scale and define its residual or other proposed control.
Explain why conditioning on the control and \(X\) is assumed to remove the remaining association between treatment and potential outcomes.
Choose the outcome distribution and how treatment, covariates, and the control enter it; justify the form rather than assuming residual inclusion works automatically.
Use the estimated first-stage control in the outcome model, then calculate probability-scale effects by predicting outcomes at relevant treatment values and averaging over a stated population.
Worked Calculations
Worked Example: A Probit Prediction With a First-Stage Residual
Suppose a hypothetical continuous-treatment first stage is \(D=2+0.8Z+V\), with \(E[V\mid Z,X]=0\). The outcome model is \(P(Y=1\mid D,X,V)=\Phi(-0.4+0.7D+0.5X+0.6V)\). For an observation with \(Z=1\), \(V=0\), and \(X=1\), find the treatment and predicted outcome probability.
The first stage gives \(D=2+0.8(1)+0=2.8\). Substituting that treatment and the covariate and residual values into the probit index gives
Thus the modeled conditional probability is \(\Phi(2.06)\approx 0.9803\). Under the stated model and assumptions, this is a predicted probability for an observation with \(D=2.8\), \(X=1\), and \(V=0\). It is not a claim that treatment caused a 98.03% probability for every comparable individual.
Worked Example: Why Plugging in the Fitted Treatment Can Mislead
Keep the same hypothetical first stage and consider \(Z=0\), so the fitted treatment is \(E[D\mid Z=0,X]=2\). Suppose that, at these covariate values, the residual is equally likely to be \(-1\) or \(1\), and use the outcome model \(P(Y=1\mid D,V)=\Phi(-0.4+0.7D+0.6V)\). Compare averaging the conditional probabilities with evaluating the outcome model at the fitted treatment and residual zero.
When \(V=1\), the treatment is \(D=2+1=3\), giving index \(-0.4+0.7(3)+0.6(1)=2.3\) and probability \(\Phi(2.3)\approx0.9893\). When \(V=-1\), the treatment is \(D=2-1=1\), giving index \(-0.4+0.7(1)+0.6(-1)=-0.3\) and probability \(\Phi(-0.3)\approx0.3821\). The average conditional probability is
By contrast, substituting \(D=2\) and \(V=0\) into the outcome model gives \(\Phi(-0.4+0.7(2))=\Phi(1)\approx0.8413\). These predictions differ because a nonlinear function of an average is generally not the average of the nonlinear function. The fitted-treatment prediction has also discarded the residual variation that the control-function model uses to represent treatment endogeneity.
Worked Example: Calculating a Residual and Conditional Prediction
In another hypothetical illustration, suppose the first stage is \(D=1+0.5Z+0.4X+V\). An observation has \(Z=1\), \(X=1\), and \(D=2.2\). A fitted probit outcome model has index \(-1+0.8D+0.2X+0.5V\). Calculate its first-stage residual and predicted probability.
The fitted treatment is \(1+0.5(1)+0.4(1)=1.9\). Therefore the residual is \(V=D-\widehat{E}[D\mid Z,X]=2.2-1.9=0.3\). Using the observed treatment and this residual, the outcome index is
The predicted conditional probability is \(\Phi(1.11)\approx0.8665\). This calculation demonstrates residual inclusion, not proof that this model is valid. Its interpretation depends on whether the first stage, residual sufficiency, exclusion, and conditional probit specification are credible.
Diagnostics, Alternatives, and Limits
A control-function analysis should be scrutinized at both stages. At the first stage, inspect whether the instrument predicts treatment in the relevant covariate strata, whether the model captures the treatment pattern, and whether residuals show systematic structure against fitted values or covariates. These checks can reveal a poor first-stage functional form, but they cannot establish that the residual is a sufficient control for unobserved outcome determinants.
At the outcome stage, assess whether the conditional model is plausible, whether predicted probabilities stay within \([0,1]\), and whether the data support the treatment and control values used for interpretation. Compare reasonable specifications of the control’s contribution when theory permits, such as allowing a nonlinear residual function rather than imposing a single linear term. Such comparisons are sensitivity checks, not a guarantee that one specification has removed all endogeneity. An instrument that has a direct outcome effect, a residual that fails to capture relevant dependence, or substantial lack of overlap can invalidate the interpretation even if the regression converges.
The main alternative is to model the joint treatment and outcome process directly, with assumptions linking their unobserved components. Such a model can make the dependence structure explicit, but it brings its own distributional and functional-form assumptions. A control-function model can be more modular: estimate a treatment model, construct a control, and include it in the conditional outcome model. Neither approach is assumption-free, and neither becomes credible merely because an instrument is available.
Finally, distinguish conditional predictions from population effects. A fitted probability at fixed \(D,X,V\) is conditional on those values. To report an average contrast, predict outcomes under two treatment levels while holding each observation’s covariates and control value fixed, form the contrasts, and average over the target population. This averaging step is especially important with nonlinear links.
Common Mistakes
- Assuming any residual removes endogeneity. A residual is a control only if the first-stage structure and sufficiency condition justify it. A poorly specified residual can leave confounding uncontrolled.
- Ignoring exclusion. If the instrument affects the outcome directly, its influence cannot be represented solely through treatment and the proposed control under this setup.
- Treating the probit coefficient as a risk difference. The coefficient changes the latent index; the probability-scale change depends on the index and the values at which predictions are made.
- Replacing treatment by its fitted value and calling that residual inclusion. These procedures are different. Fitted-value substitution does not condition on the observed treatment residual and, with a nonlinear link, need not reproduce averaged conditional predictions.
- Confusing model fit with identification. A good-looking fit or stable estimate does not establish instrument validity, residual sufficiency, or adequate support.
Check Your Understanding
Answer each question, then compare with the brief solutions below.
- In a first stage \(D=1+0.5Z+0.4X+V\), calculate the fitted treatment and residual when \(Z=0\), \(X=1\), and observed \(D=1.7\).
- Why does instrument relevance alone not establish that a first-stage residual is a valid control function?
- In a probit outcome model, why is the treatment coefficient not generally the probability-scale effect?
- Using the outcome model \(\Phi(-0.4+0.7D+0.6V)\), calculate the conditional probability at \(D=2,V=0\).
- Name one diagnostic that can reveal a problem with the first stage and one key assumption that such a diagnostic cannot prove.
Solutions. (1) The fitted treatment is \(1+0+0.4=1.4\), so the residual is \(1.7-1.4=0.3\). (2) Relevance means \(Z\) predicts \(D\); it does not imply that the residual captures all dependence between treatment and potential outcomes. Sufficiency is an additional assumption. (3) The coefficient acts on the probit index, while the probability change depends on the index and covariate values. (4) The index is \(-0.4+0.7(2)+0.6(0)=1.0\), so the probability is \(\Phi(1.0)\approx0.8413\). (5) Residual patterns against fitted treatment can reveal first-stage misspecification; they cannot prove instrument validity or control sufficiency.