Tutorials › Propensity Score Matching and Instrumental Variables › Sensitivity To Control-Function Specification

Binary and Nonlinear Outcome IV Methods · Tutorial 574 of 699

Sensitivity To Control-Function Specification

Assess whether nonlinear instrumental-variable conclusions depend on how the control function is constructed and entered into the outcome model.

Advanced 11 min read

What You'll Learn

  • State the assumptions needed for a control-function interpretation in a nonlinear outcome model.
  • Compare linear, nonlinear, and flexible residual specifications without treating better fit as proof of validity.
  • Recognize how first-stage distribution assumptions affect generalized residuals.
  • Compare models using predicted risks or marginal effects on a common scale.
  • Diagnose instability, poor overlap, and sensitivity to generated-residual estimation.
  • Distinguish specification checks from evidence for instrument validity.

Why Control-Function Specification Deserves Attention

A control-function analysis can produce a precise-looking estimate while depending strongly on how a residual enters the nonlinear outcome model. A linear residual term, a squared residual, and a flexible residual function impose different restrictions on how unobserved selection relates to the outcome. A different first-stage distribution can also produce a different control function. The resulting estimates therefore warrant sensitivity analysis, not automatic confidence in whichever model fits best.

The purpose of this tutorial is to assess that dependence. A sensitivity analysis can show that conclusions are robust, or reveal that they depend on a particular functional form. It cannot establish that the instrument is valid: no comparison of outcome-model specifications proves the instrument’s independence or exclusion restriction.

Definition: Let \(Y\) be an outcome, \(D\) an endogenous treatment, \(Z\) an instrument, and \(X\) observed exogenous covariates. A control function is a variable \(R\), usually a residual or generalized residual from a first-stage model for \(D\), included in the outcome model to account for dependence between \(D\) and unobserved outcome determinants. A control-function specification states how \(R\), and possibly its transformations or interactions, enter that model.

Conditions for Interpreting the Comparisons

A common binary-outcome control-function model writes the conditional outcome probability as

$$ P(Y=1\mid D,Z,X,R)=G\!\left(\beta D+X^\mathsf{T}\gamma+h(R,D,X)\right), $$

where \(G\) is a link function such as the logistic or normal cumulative distribution function, and \(h\) describes the control-function terms. For example, \(h\) might be \(\lambda R\), or \(\lambda_1R+\lambda_2(R^2-\overline{R^2})\). Centering the squared term can make its coefficient easier to interpret and can reduce unnecessary collinearity with the intercept; it does not change the model’s fitted probabilities.

This equation alone does not identify a causal effect. A control-function interpretation requires a relevant instrument, instrument independence from unobserved outcome determinants conditional on \(X\), and exclusion of \(Z\) from the outcome equation except through \(D\). It also requires a correctly specified first stage and an adequate control function: conditional on the chosen \(R\) and \(X\), the remaining dependence between \(D\) and the outcome’s unobserved determinants must be handled well enough for the outcome model to be valid. The link and the other outcome-model terms must also be appropriate. These conditions are substantive and cannot be verified just by comparing fits.

For a continuous treatment with a linear first stage, \(R\) may be the first-stage residual. For a nonlinear first stage, a generalized residual is used; its definition depends on the first-stage model. In either case, \(R\) is estimated, not observed as a known covariate. Uncertainty calculations should account for this generated regressor, for example by re-estimating both stages in a bootstrap that resamples independent observational units.

Why Alternative Residual Terms Can Matter

The basic rationale is that if the conditional distribution of the outcome’s unobserved component given \(D,Z,X\) depends on selection into \(D\) through a latent first-stage component, a control function can summarize that dependence. If the summary is adequate, conditioning on it makes the remaining outcome uncertainty compatible with the specified outcome model. But a single linear term assumes a particular way that selection affects the outcome’s conditional index. A quadratic or flexible function relaxes that restriction.

For example, suppose a latent outcome index contains \(aR+bR^2\). A model containing only \(R\) omits \(bR^2\) when \(b\ne0\). If \(R\) is associated with treatment, the omitted curvature can be attributed partly to the treatment term, shifting the treatment estimate. Conversely, adding many residual terms in a small sample can inflate uncertainty, make estimates unstable, and fit noise. Greater flexibility is not automatically better.

The same concern arises when treatment effects vary with selection. An interaction \(D R\) lets the treatment association on the model’s index scale vary with \(R\). If such variation is plausible, omitting the interaction imposes a restriction. Including it changes the interpretation: a single treatment coefficient is no longer the treatment contrast at every value of \(R\). For nonlinear links, even a constant index coefficient does not equal a constant risk difference.

Worked Example: Testing Dependence on Residual Curvature

Suppose a hypothetical analysis of 1,200 independent records estimates a binary-outcome logit model using the same first stage and covariates in each specification. The first model includes \(R\); the second adds the centered square \(R^2-\overline{R^2}\). For illustration, assume both models converge and use the same observations. Their reported average treatment effects on the risk-difference scale are \(0.080\) (standard error \(0.031\)) and \(0.058\) (standard error \(0.034\)), respectively. The likelihood-ratio statistic for adding the one squared term is \(4.84\).

The change in the estimated average effect is

$$ 0.080-0.058=0.022. $$

Thus the linear-residual model’s estimated effect is 2.2 percentage points larger than the quadratic-residual model’s estimate. This difference is a sensitivity finding; it is not itself a test that either model is correct.

For the nested likelihood comparison, the null hypothesis is that the squared-residual coefficient is zero. Under the usual likelihood-ratio reference distribution, the statistic is compared with a chi-squared distribution with one degree of freedom. The resulting \(p\)-value is approximately \(0.028\). At a 5% significance level, this is evidence against the restriction that the added term is unnecessary within these nested models, assuming the likelihood and regularity conditions for the comparison are appropriate. It does not demonstrate that the quadratic model is correctly specified or that the instrument is valid.

The first model’s approximate 95% confidence interval for its reported average effect is \(0.080\pm1.96(0.031)=(0.019,0.141)\), or 1.9 to 14.1 percentage points. The quadratic model’s corresponding interval is \(0.058\pm1.96(0.034)=(-0.0086,0.125)\), or about -0.86 to 12.5 percentage points. The intervals overlap substantially. The estimates are uncertain, and the second interval includes zero; neither fact eliminates the observed specification dependence.

Distributional Assumptions and Generalized Residuals

A generalized residual is tied to the assumed first-stage distribution. For example, suppose a binary treatment \(D\) is modeled by a probit first stage with index \(\eta=Z^\mathsf{T}\pi+X^\mathsf{T}\delta\). Under the standard normal latent-error assumption, a generalized residual is

$$ R= \begin{cases} \phi(\eta)/\Phi(\eta), & D=1,\\ -\phi(\eta)/\{1-\Phi(\eta)\}, & D=0, \end{cases} $$

where \(\phi\) and \(\Phi\) are the standard normal density and cumulative distribution functions. This is a conditional mean of the latent first-stage error, not an ordinary observed-minus-predicted residual. Changing the first-stage link or distribution changes the residual values and therefore can change the control-function outcome estimates.

Worked Example: How the First-Stage Distribution Changes the Residual

Consider a hypothetical record with first-stage probit index \(\eta=0.5\), for which \(\phi(0.5)\approx0.3521\) and \(\Phi(0.5)\approx0.6915\). If this person received treatment, the probit generalized residual is

$$ R=\frac{0.3521}{0.6915}\approx0.5092. $$

If instead the person did not receive treatment, the residual is

$$ R=-\frac{0.3521}{1-0.6915} =-\frac{0.3521}{0.3085} \approx-1.141. $$

These values are asymmetric, as expected for this conditional-mean construction. They should not be replaced casually by \(D-\hat p\), the binary treatment minus its fitted probability: that is a different quantity. In a sensitivity analysis, one could compare results from a justified probit first stage with results from another defensible first-stage specification, recomputing its corresponding generalized residual each time. If estimates change, that reveals dependence on first-stage modeling assumptions; it does not tell which assumption is true.

Compare Effects on a Common Scale

Outcome-model coefficients from different links are not directly comparable: a logit coefficient and a probit coefficient use different index scales. Even within a single link, changes in other model terms can alter coefficient interpretations. A useful comparison reports a common estimand, such as an average predicted risk difference, computed by the same procedure in each model. For each person, predict the outcome under the treatment values being compared, average each set of predictions over the target sample, and subtract.

When the treatment is binary, this comparison should say which population is averaged over and how the control-function value is handled for each counterfactual prediction. In many applications, simply changing \(D\) while holding an estimated residual fixed is a model-based contrast, not automatically the desired population causal effect. The assumptions connecting the control function to a causal estimand must justify the chosen prediction procedure. Report the estimand and procedure rather than presenting a model coefficient as though it were universally interpretable.

Worked Example: A Treatment-by-Residual Interaction

Suppose a hypothetical logit outcome model has index \(-1+0.4R+0.5D-0.6DR\), with no other covariates. Consider the model-implied contrast between \(D=1\) and \(D=0\) at two specified residual values. At \(R=0\), the indices are \(-1\) and \(-0.5\). Applying the logistic function \(\operatorname{expit}(a)=1/(1+e^{-a})\), the predicted risks are

$$ \operatorname{expit}(-1)\approx0.2689,\qquad \operatorname{expit}(-0.5)\approx0.3775. $$

The predicted risk difference is \(0.3775-0.2689=0.1086\), or 10.9 percentage points. At \(R=1\), the indices are \(-0.6\) for \(D=0\) and \(-1+0.4+0.5-0.6=-0.7\) for \(D=1\). The risks are approximately \(0.3543\) and \(0.3318\), giving a risk difference of \(0.3318-0.3543=-0.0225\), or -2.25 percentage points.

The treatment contrast differs across these residual values because of the interaction and the nonlinear link. These are conditional model predictions at specified \(R\), not a population-average causal effect. To make a population claim, the analyst must define and justify how predictions are averaged and how the control function is treated under the counterfactuals.

Practical Diagnostics and Alternatives

A defensible comparison begins by holding the sample, covariates, first-stage information, and target estimand fixed where possible. Then vary a small set of substantively defensible choices: linear versus nonlinear residual terms, an interaction when justified, and plausible first-stage specifications. Plot the outcome against residual values or compare observed outcomes with model-predicted risks across residual groups. Such plots can reveal curvature or systematic lack of fit, but do not establish identification.

  • Check residual support. Sparse tails make squared terms and splines unstable. Report how many observations support the extreme values and check whether treatment comparisons rely on extrapolation.
  • Check convergence and precision. Large changes in estimates, very large standard errors, nearly redundant terms, or convergence warnings can indicate weak information or overfitting.
  • Use inference that reflects estimation of \(R\). A bootstrap should repeat the first stage and outcome stage together. Treating the estimated residual as fixed can understate uncertainty.
  • Compare predictions and the target effect. Report average risks or risk differences on a common scale, not only link-specific coefficients.
  • Separate fit from validity. A likelihood-ratio test or information criterion evaluates aspects of model fit under its assumptions. Neither tests instrument exclusion or independence.

Alternatives answer different questions and rely on different restrictions. A control-function model specifies how selection is represented in the conditional outcome model. Structural mean models and G-estimation instead formulate treatment effects through structural restrictions; they are not merely alternative residual transformations. A conventional regression without a control function may be useful descriptively, but it does not solve endogeneity just because it includes observed covariates. The appropriate comparison depends on the estimand and assumptions, rather than on choosing the specification with the smallest information criterion.

A central limitation is that functional-form sensitivity analysis cannot diagnose every failure. Similar estimates across several specifications do not prove instrument validity, and different estimates do not identify which specification is correct. Weak instruments, incorrect exclusion restrictions, unmeasured effect heterogeneity, and first-stage misspecification can remain consequential across all the models compared. Report the range of substantively defensible estimates and explain the assumptions that distinguish them.

Common mistake: “The quadratic residual model fits better, so the instrument is valid and its treatment effect is causal.” Better fit only supports a comparison of specified outcome models under their assumptions. Instrument relevance, independence, and exclusion are separate identification conditions; a fit statistic cannot verify them.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. A quadratic residual model changes an estimated average risk difference from 6 percentage points to 4 percentage points. What does this change establish, and what does it not establish?
  2. Why should a probit generalized residual not be replaced without explanation by treatment minus fitted probability?
  3. Two nonlinear outcome models use different links. Which quantities are more appropriate to compare than their raw treatment coefficients?
  4. A model with a treatment-by-residual interaction has a single treatment coefficient. Is that coefficient the treatment risk difference for every individual?
  5. What must a bootstrap repeat when the control function is estimated in a first stage?

Solutions. (1) It establishes that the estimated effect is sensitive to the residual specification in this analysis; it does not establish which model is correct or that the instrument is valid. (2) The probit generalized residual is a conditional mean of a latent error under a specific distributional model, whereas treatment minus fitted probability is a different residual with a different construction. (3) Compare clearly defined predictions, such as average risks and average risk differences, using the same target population and prediction procedure. (4) No. The interaction makes the index-scale treatment contrast depend on the residual, and the nonlinear link means the risk difference can also vary with baseline risk. (5) It should re-estimate the first stage and construct the control function again, then refit the outcome model, for each bootstrap sample.

Clinical Biostats