Tutorials › Econometrics (Graduate) › Endogenous Treatments In Nonlinear Outcome Models

Endogeneity and Control Functions · Tutorial 241 of 952

Endogenous Treatments In Nonlinear Outcome Models

Use a first-stage selection model and a nonlinear outcome equation to adjust for endogeneity, then determine when model contrasts have a causal treatment-effect interpretation.

Advanced 12 min read

What You'll Learn

  • Specify a binary-treatment selection equation and a control-function adjustment for nonlinear outcomes.
  • Derive the selection correction implied by a normal latent-index first stage.
  • Interpret treatment contrasts in log-mean and logit outcome models.
  • Distinguish conditional outcome contrasts from average causal treatment effects.
  • Identify the exclusion, control-sufficiency, overlap, and model assumptions required for causal interpretation.

Why Treatment Endogeneity Needs Special Care in Nonlinear Models

Suppose a treatment indicator \(D\) records whether a person receives a program, a clinical intervention, or a subsidy, and \(Y\) is an outcome such as spending, employment, or a health measure. If unobserved characteristics that affect \(Y\) also influence treatment selection, then \(D\) is endogenous. A nonlinear outcome model does not remove this problem: fitting a logit or a log-mean equation directly to \(Y\) and \(D\) can still confound treatment differences with selection differences.

A control function addresses this dependence by modeling treatment assignment and including a function of the first-stage information in the outcome equation. Its role is not merely to improve prediction. The assumptions behind the control function determine whether a fitted contrast is a conditional outcome association or a causal treatment effect.

Definition: A control function is a variable or function of variables constructed from a model for an endogenous regressor, here the binary treatment \(D\), and included in an outcome equation to account for dependence between treatment assignment and unobserved outcome determinants. The treatment contrast in the adjusted outcome equation is a conditional outcome contrast. It is a causal treatment effect only under additional assumptions connecting the control to potential outcomes.

A Binary Selection Model and Its Control

Let \(X\) denote observed covariates included in both equations, and let \(Z\) denote excluded instruments: variables that help predict treatment but, conditional on \(X\), have no direct effect on the outcome. A common selection model is a latent-index probit:

$$ D=1\{\eta(X,Z)+V\geq 0\}, \qquad \eta(X,Z)=X'\delta+Z'\gamma,\qquad V\sim N(0,1). $$

Here \(D=1\) indicates treatment, and \(V\) is an unobserved treatment-selection disturbance. Assume \(V\mid X,Z\sim N(0,1)\). The first-stage treatment probability is \(P(D=1\mid X,Z)=\Phi(\eta(X,Z))\), where \(\Phi\) is the standard normal cumulative distribution function. Instrument relevance requires \(Z\) to contribute useful variation in this probability after conditioning on \(X\).

To see how selection creates endogeneity, suppose an unobserved outcome disturbance \(U\) is correlated with \(V\). Under a joint normal model, write \(U=\rho\sigma_U V+\epsilon\), where \(\epsilon\) is mean-independent of \(V\), \(\rho\) is their correlation, and \(\sigma_U\) is the standard deviation of \(U\). Conditional on treatment status, the expected value of \(U\) is generally not zero. A selection correction is therefore a function of treatment status and the first-stage index:

$$ h(D,\eta)= \begin{cases} \dfrac{\phi(\eta)}{\Phi(\eta)}, & D=1,\\[6pt] -\dfrac{\phi(\eta)}{1-\Phi(\eta)}, & D=0, \end{cases} \qquad E[U\mid D,X,Z]=\rho\sigma_U h(D,\eta). $$

The function \(\phi\) is the standard normal density. The displayed conditional expectation follows from the truncated-normal means of \(V\): treated observations have \(V\geq-\eta\), while untreated observations have \(V<-\eta\). In an applied model, the selection correction may be included directly or multiplied by an estimated coefficient. The normal selection model is one particular justification, not a universal recipe for every endogenous binary treatment.

From the Control Function to a Nonlinear Outcome Equation

For a positive outcome, one possible specification is a log conditional-mean model. For a binary outcome, a logit conditional-probability model is another. In either case, let \(C\) denote the control term actually used in the outcome equation. For example, under the selection model above, \(C=h(D,\eta)\) is an observed, generated function of the first-stage treatment status and index. The outcome model might take the form

$$ E[Y\mid D,X,C]=\exp(\beta_0+\beta_X'X+\tau D+\lambda C) $$

or, for a binary \(Y\),

$$ P(Y=1\mid D,X,C)=\Lambda(\beta_0+\beta_X'X+\tau D+\lambda C), \qquad \Lambda(a)=\frac{1}{1+\exp(-a)}. $$

These equations specify conditional means or probabilities, not the entire distribution of \(Y\). Their functional forms and the control adjustment must be justified for the application. In particular, including a first-stage residual or correction does not by itself guarantee that all dependence between treatment and outcome has been removed.

Worked Example: A Selection Correction From a Probit First Stage

Consider a hypothetical individual with first-stage index \(\eta=0.5\). Suppose the individual is treated, \(D=1\). The estimated treatment probability is \(\Phi(0.5)\approx0.6915\), and the standard normal density is \(\phi(0.5)\approx0.3521\).

The treated selection correction is \(h(1,0.5)=0.3521/0.6915\approx0.5092\). If the hypothetical product \(\rho\sigma_U\) is \(0.4\) outcome units, the model-implied conditional mean of the outcome disturbance is \(0.4(0.5092)\approx0.2037\) outcome units.

For an otherwise comparable untreated individual with the same index, the correction is \(h(0,0.5)=-0.3521/(1-0.6915)\approx-1.141\). The corresponding disturbance mean is \(0.4(-1.141)\approx-0.4564\) outcome units. The opposite signs reflect selection into treatment under this model. They do not show that treatment itself caused an outcome difference; they describe the model-implied selection in the outcome disturbance.

The ordinary first-stage residual \(D-\Phi(\eta)\) would be \(1-0.6915=0.3085\) for the treated individual and \(0-0.6915=-0.6915\) for the untreated individual. These are not the truncated-normal corrections just calculated. Substituting a raw residual for a control function requires its own justification; the two quantities are not interchangeable by definition.

What a Nonlinear Treatment Contrast Means

In a nonlinear model, the treatment coefficient alone is usually not a difference in the outcome's original units. For the log conditional-mean model, \(\tau\) is a difference in log conditional means holding \(X\) and \(C\) fixed. Exponentiating it gives the conditional mean ratio \(\exp(\tau)\); the corresponding difference in outcome units depends on the covariate and control values. In a logit model, \(\tau\) is a conditional log-odds difference, and \(\exp(\tau)\) is a conditional odds ratio. A probability difference must be calculated from the fitted probabilities.

Worked Example: Conditional Mean Contrast in a Log-Mean Model

Suppose a hypothetical fitted model for a positive outcome measured in visits per year is \(E[Y\mid D,x,c]=\exp(1.00+0.08x+0.25D+0.26c)\), where \(x\) is age in years and \(c\) is the control value. Evaluate its fitted contrast at \(x=5\) years and \(c=1\).

For the untreated case, the index is \(1.00+0.08(5)+0.26(1)=1.660\), so the fitted conditional mean is \(\exp(1.660)\approx5.259\) visits per year. For the treated case, the index is \(1.660+0.25=1.910\), giving \(\exp(1.910)\approx6.753\) visits per year.

The fitted conditional mean difference is therefore \(6.753-5.259\approx1.494\) visits per year (using unrounded means). The conditional mean ratio is \(\exp(0.25)\approx1.284\), or about 28.40% higher. These are conditional model contrasts at the specified \(x\) and \(c\). They are not automatically causal effects, and the difference in outcome units would vary with the covariate and control values.

Worked Example: A Logit Contrast Is Not a Probability Difference

Suppose a hypothetical fitted model for a binary outcome is \(P(Y=1\mid D,x,c)=\Lambda(-1.50+0.20x+0.80D+0.50c)\). At \(x=2\) and \(c=0.4\), the untreated index is \(-1.50+0.20(2)+0.50(0.4)=-0.900\). Its fitted probability is \(\Lambda(-0.900)=1/(1+\exp(0.900))\approx0.2891\).

The treated index is \(-0.900+0.800=-0.100\), giving \(\Lambda(-0.100)=1/(1+\exp(0.100))\approx0.4750\). Using the unrounded fitted probabilities, the conditional probability difference is approximately \(0.1860\), or 18.60 percentage points. The coefficient \(0.80\) is not this probability difference; it is the fitted conditional log-odds difference. Its exponentiated value, \(\exp(0.80)\approx2.226\), is the conditional odds ratio.

As before, these calculations compare fitted conditional outcomes at fixed \(x\) and \(c\). Whether they represent a treatment effect depends on the causal assumptions, not on the use of a logit link.

When Can the Contrast Be a Treatment Effect?

Define \(Y(1)\) and \(Y(0)\) as the potential outcomes under treatment and no treatment. Consistency says the observed outcome is \(Y=DY(1)+(1-D)Y(0)\); no interference means one individual's treatment does not change another individual's potential outcome. To identify causal effects, the control must do more than improve the fit of the observed conditional mean. In a control-sufficiency formulation, conditioning on observed covariates \(X\) and a valid control \(C\) must remove treatment selection for the potential outcomes:

$$ \{Y(1),Y(0)\}\perp D\mid X,C. $$

This conditional independence is an assumption, not a consequence of adding a generated variable to a regression. For a generic control-sufficiency approach, there must also be overlap: for covariate and control values used in the target population, both treatment states must be possible. This condition does not hold for the treatment-specific \(C=h(D,\eta)\) defined above, since \(h\) is positive when \(D=1\) and negative when \(D=0\). Thus, conditioning on this \(C\) cannot identify treatment contrasts over a common \((X,C)\) distribution; causal effects using this correction require structural control-function assumptions and counterfactual adjustment or integration. The outcome and first-stage specifications must be adequate, the excluded instruments must be relevant, and instrument exogeneity and exclusion must hold. Exclusion means \(Z\) has no direct effect on potential outcomes once the stated conditioning variables are accounted for. These requirements are demanding, especially when the control is obtained from a parametric selection model.

When the assumptions hold, define \(m_d(x,c)=E[Y(d)\mid X=x,C=c]\). The conditional average treatment effect at \((x,c)\) is \(m_1(x,c)-m_0(x,c)\). The average treatment effect for a specified target population is the average of that contrast over the target distribution of \(X,C\), not the coefficient \(\tau\) in general:

$$ ATE=E_{X,C}\left[m_1(X,C)-m_0(X,C)\right]. $$

Computing this average requires evaluating both treatment states for the same target covariate-and-control distribution and then averaging. It is not generally correct to compare the mean among observed treated people with the mean among observed untreated people: those groups may have different distributions of \(X\) and the control. In selection-model implementations, the constructed correction \(h(D,\eta)\) depends on observed \(D\). A causal calculation therefore needs a structural interpretation that provides the relevant counterfactual adjustment or integration; simply holding each observed treatment-specific correction fixed while switching \(D\) need not produce an ATE.

Why the Selection Correction Has Its Form

The inverse Mills terms above are conditional means of the latent selection disturbance. For \(D=1\), the selection rule implies \(V\geq-\eta\). A standard normal variable truncated below at \(a\) has conditional mean \(\phi(a)/(1-\Phi(a))\). Taking \(a=-\eta\), and using \(\phi(-\eta)=\phi(\eta)\) and \(1-\Phi(-\eta)=\Phi(\eta)\), gives

$$ E[V\mid D=1,X,Z]=E[V\mid V\geq-\eta] =\frac{\phi(-\eta)}{1-\Phi(-\eta)} =\frac{\phi(\eta)}{\Phi(\eta)}. $$

For \(D=0\), the truncation is \(V<-\eta\). A standard normal variable truncated above at \(a\) has conditional mean \(-\phi(a)/\Phi(a)\), so

$$ E[V\mid D=0,X,Z]=-\frac{\phi(-\eta)}{\Phi(-\eta)} =-\frac{\phi(\eta)}{1-\Phi(\eta)}. $$

Finally, \(U=\rho\sigma_U V+\epsilon\), with \(E[\epsilon\mid V,D,X,Z]=0\), implies \(E[U\mid D,X,Z]=\rho\sigma_U E[V\mid D,X,Z]\). This yields the stated selection correction. The derivation depends on the latent-index and joint-normal assumptions; different treatment and outcome dependence may require a different control function.

1
Specify treatment assignment.
State the binary-treatment model, its covariates, excluded instruments, and the assumptions that justify the first-stage control.
2
Construct the control.
Estimate the first stage and calculate the control function implied by that model. Do not assume a raw residual is valid for a binary treatment.
3
Fit and interpret the nonlinear outcome model.
Include treatment, covariates, and the control. Translate the treatment contrast into the outcome scale at stated covariate and control values.
4
Make a causal claim only with causal support.
Assess control sufficiency, exclusion, relevance, overlap, and model adequacy; average counterfactual contrasts over the intended target population.

Common Mistakes and Practical Checks

  • Calling a fitted conditional contrast a treatment effect. The control-adjusted outcome equation describes conditional outcomes under its assumptions. A causal interpretation additionally requires that the control handles selection for potential outcomes and that overlap and identification conditions hold.
  • Reading a nonlinear coefficient on the outcome scale. In a log-mean model, \(\tau\) is a log-mean contrast; in a logit model, it is a log-odds contrast. Compute mean or probability contrasts at relevant covariate values.
  • Using a raw first-stage residual without justification. For binary treatment, the selection correction depends on treatment status and the first-stage probability. The ordinary residual \(D-\hat p\) is not generally the same control.
  • Ignoring generated-control uncertainty. The control is estimated in a first stage. Inference for the outcome model must account for that estimation rather than treating the generated values as fixed data.
  • Assuming an instrument is valid because it predicts treatment. Relevance does not establish exogeneity or exclusion. A variable can strongly predict treatment and still directly affect the outcome.

Control-function methods are useful because they let researchers formulate nonlinear conditional outcome models while addressing a specific source of endogeneity. Their value depends on keeping three questions separate: whether the first-stage model is credible, whether the outcome equation adequately describes conditional outcomes, and whether the resulting contrast is identified as causal for the target population.

Check Your Understanding

Answer each question using the assumptions and definitions stated above.

  1. In a latent-index probit treatment model, why does the control correction differ between treated and untreated observations?
  2. A log-mean model has a treatment coefficient of \(0.30\). What does \(\exp(0.30)\) describe, and why is \(0.30\) not generally a difference in outcome units?
  3. What additional assumptions are needed before a control-adjusted contrast can be interpreted as a causal treatment effect?
  4. Why is the raw residual \(D-\hat p\) not automatically a valid substitute for a binary-treatment selection correction?
  5. Explain why a causal average treatment effect is calculated over a common target distribution rather than by subtracting observed treated and untreated means.
Clinical Biostats