Tutorials › Econometrics (Graduate) › Semiparametric Control Functions for Selected Outcomes

Sample Selection Models · Tutorial 563 of 952

Semiparametric Control Functions for Selected Outcomes

Estimate selected-outcome conditional means flexibly using an estimated selection probability, and see why excluded-variable variation matters even without Gaussian errors.

Advanced 11 min read

What You'll Learn

  • Derive a selection control function from the conditional distribution of the selection error.
  • Estimate selection probabilities flexibly without imposing a normal error distribution.
  • Approximate the selected-outcome mean with series terms in covariates and the estimated control.
  • Explain how excluded-variable variation helps separate selection correction from outcome effects.
  • Recognize support, normalization, and generated-regressor limitations.

Why Use a Semiparametric Control Function?

The familiar inverse Mills ratio correction is tied to a particular Gaussian selection model. A control-function approach keeps the central selection idea—selection changes the average outcome error among observed units—but allows that correction to be an unknown function rather than a normal-theory formula. This flexibility is useful when the outcome is observed only for selected units and a credible parametric error distribution is unavailable.

Flexibility does not remove the need for assumptions. In particular, a selection probability can summarize the relevant selection threshold only when the distribution of the selection error is stable across covariates. Excluded-variable variation is also important: it can change selection while leaving the outcome equation unchanged, helping distinguish a selection correction from covariate effects.

Model and Control-Function Representation

Let \(D_i=1\) indicate that the outcome is observed for unit \(i\). For clarity, begin with a latent-threshold selection rule and an outcome equation:

$$ D_i=1\{\eta(X_i,Z_i)+V_i>0\}, \qquad Y_i=m(X_i)+U_i \quad \text{when } D_i=1. $$

Here \(X_i\) contains outcome covariates, \(Z_i\) contains selection covariates, and \(U_i,V_i\) are unobserved outcome and selection components. The function \(\eta\) determines the selection threshold. The exclusion restriction is that \(Z_i\) affects selection but does not enter the outcome equation directly. The outcome \(Y_i\) is observed only when \(D_i=1\).

Assumptions for the basic representation: The pairs \((U_i,V_i)\) are identically distributed across units and independent of \((X_i,Z_i)\); \(V_i\) has a continuous, strictly increasing cumulative distribution function \(F_V\); \(E[|U_i|]<\infty\) and \(E[U_i]=0\); and selection occurs when \(V_i>-\eta(X_i,Z_i)\). The outcome equation has no direct \(Z_i\) term. These assumptions imply that the conditional distribution of \(V_i\) given \(X_i,Z_i\) is the same \(F_V\) for every covariate value.

The independence assumption is a transparent sufficient condition, not the only possible set of conditions for a control-function representation. Its role here is crucial: it makes the selection probability depend on the threshold through a common distribution, rather than through an unmodelled covariate-specific distribution.

Write \(c(X,Z)=-\eta(X,Z)\) for the selection threshold. Then the conditional probability of selection is \(p(X,Z)=P(D=1\mid X,Z)=1-F_V(c(X,Z))\). For an interior probability \(0<p(X,Z)<1\), the selected conditional outcome mean is \(E[Y\mid X,Z,D=1]=m(X)+g(p(X,Z))\), where \(g\) is an unknown selection correction. This statement follows because the distribution of \(U,V\) is stable across \(X,Z\), and conditioning on selection truncates \(V\) at the threshold corresponding to \(p\).

Definition: A selection control function is a function of observed variables that summarizes how selection changes the conditional mean of an unobserved outcome component. In this model, the control is the selection probability \(p(X,Z)\), and the correction is \(g(p)=E[U\mid V>c]\) at the threshold \(c\) that gives selection probability \(p\).

Why the Correction Is a Function of the Selection Probability

A short derivation makes the distributional requirement explicit. Define \(W=F_V(V)\). Since \(F_V\) is continuous and strictly increasing, \(W\) is uniformly distributed on \((0,1)\). The event \(V>c\) is equivalent to \(W>F_V(c)\). Since \(p=1-F_V(c)\), it is also equivalent to \(W>1-p\). Let \(q(r)=E[U\mid W=r]\), understood as a conditional-mean function defined almost everywhere. Then:

$$ \begin{aligned} g(p) &=E[U\mid W>1-p]\\ &=\frac{E[U\,1\{W>1-p\}]}{P(W>1-p)}\\ &=\frac{1}{p}\int_{1-p}^{1}q(r)\,dr,\qquad 0<p\leq 1. \end{aligned} $$

The denominator is \(p\) because \(W\) is uniform. The numerator has the displayed integral because \(E[U\mid W=r]=q(r)\). Thus the correction is a function of \(p\) alone under the stated stable joint distribution of \((U,V)\). No Gaussian distribution is needed. At \(p=1\), selection is certain, so \(g(1)=E[U]=0\).

This result does not say that the correction is necessarily linear, smooth, or well approximated by a low-degree polynomial. Those are approximation choices to be assessed against the data and the available support. If the conditional distribution of \(V\) changes with \(X,Z\), the formula \(1-F_V(c)\) using a single marginal CDF need not give the conditional selection probability, and the reduction to one common \(g(p)\) need not hold.

Worked Example: A Non-Gaussian Correction

Suppose, hypothetically, \(V\sim\text{Uniform}(0,1)\), \(U=2V-1\), and the two errors are independent of \(X,Z\). Take \(\eta=-0.4\), so selection occurs when \(V>0.4\). Find the selection probability and selected mean of \(U\).

The selection probability is \(p=P(V>0.4)=1-0.4=0.6\). Conditional on selection, \(V\) is uniform on \((0.4,1)\), whose mean is \((0.4+1)/2=0.7\). Therefore \(E[U\mid D=1]=2(0.7)-1=0.4\).

More generally, if \(p=1-c\), then \(V\mid V>c\) has mean \((c+1)/2\). Hence \(g(p)=2((c+1)/2)-1=c=1-p\). At \(p=0.6\), this gives \(g(0.6)=0.4\), agreeing with the direct calculation. The correction is derived from a uniform error distribution, not a Gaussian one.

Series Estimation in Two Stages

A practical semiparametric procedure estimates the selection probability first and then estimates the selected conditional mean using flexible basis functions. A series is a finite collection of known functions—such as powers, splines, or interactions—whose number can be increased as the sample grows. The series does not require the selection error to be normal.

1
Estimate selection probabilities.
Use observations on both selected and unselected units to estimate \(p(X,Z)\). For example, fit a sieve logit with a growing set of basis functions in \(X,Z\). The logistic link can be used as a flexible probability approximation; it should not be interpreted as evidence that the latent selection error is normal.
2
Construct the estimated control.
For each unit, calculate \(\hat p_i\) from the first stage. Retain the values for selected units, because only those units have observed outcomes.
3
Fit the selected-outcome mean.
Among units with \(D_i=1\), regress \(Y_i\) on series terms in \(X_i\) and \(\hat p_i\). An additive specification uses separate bases for \(m(X)\) and \(g(p)\); a more general series in \((X,\hat p)\) estimates a flexible conditional-mean surface.
4
Check identification and inference.
Assess whether excluded variables shift \(\hat p\) at comparable values of \(X\), whether the relevant probabilities have support, and whether the basis is adequate. Inference must account for estimating the first-stage control, rather than treating \(\hat p_i\) as observed data.

For the additive model, the second stage approximates \(E[Y\mid X,D=1,Z]=m(X)+g(p(X,Z))\) with terms such as \(A_J(X)'\beta+B_L(p)'\gamma\). Here \(A_J\) and \(B_L\) are chosen bases, and \(J,L\) index their dimensions. The conditional mean does not depend on \(Z\) once \(X\) and the true \(p\) are held fixed; \(Z\) helps identify the correction by generating changes in \(p\).

The decomposition into \(m\) and \(g\) needs a normalization. In this model \(g(1)=0\), so \(m(X)\) is the mean outcome when selection is certain, under the maintained outcome equation and error-mean assumption. If probabilities near one are absent, estimating that normalization may require extrapolation. The selected conditional mean can still be estimable over observed support even when the structural component \(m(X)\) is not precisely recoverable there.

Worked Example: Excluded-Variable Variation at Fixed Covariates

Consider hypothetical data for one fixed value of \(X\). An excluded variable \(Z\) has two categories. Among 100 units in the first category, 30 are selected; among 100 in the second, 70 are selected. Suppose the selected-outcome means are respectively 11.4 and 10.6 units. Calculate the selection probabilities and the change in selected mean per unit change in probability.

The observed selection proportions estimate the probabilities as \(\hat p_0=30/100=0.30\) and \(\hat p_1=70/100=0.70\). The change in probability is \(0.70-0.30=0.40\); the change in selected mean is \(10.6-11.4=-0.8\) outcome units. The secant slope is therefore \((-0.8)/(0.40)=-2\) outcome units per unit of selection probability.

Because \(X\) is fixed and \(Z\) is excluded from the outcome equation, this comparison illustrates how a selection shift can reveal variation in the correction without changing the outcome covariate. If, for illustration, the correction is linear, \(g(p)=a+bp\), the slope estimate gives \(b=-2\). The two means imply \(m+a=11.4-(-2)(0.30)=12.0\). This contrast alone does not identify \(m\) and \(a\) separately; the normalization \(g(1)=0\), plus adequate support or justified extrapolation, is needed to anchor the decomposition.

Worked Example: A Linear Series Approximation

Suppose a hypothetical selected sample has three groups defined by an excluded selection variable. Their estimated selection probabilities are \(0.20,0.50,0.80\), and the corresponding selected-outcome means are \(15.6,15.0,14.4\) units. Fit the linear series \(E[Y\mid X,D=1,Z]\approx\alpha+\beta p\), holding \(X\) fixed, and use \(g(1)=0\) to recover \(m(X)\).

The slope from the endpoints is \(\hat\beta=(14.4-15.6)/(0.80-0.20)=-1.2/0.60=-2\). The intercept is obtained from any point, for example \(\hat\alpha=15.6-(-2)(0.20)=16.0\). The middle point checks the fit: \(16.0-2(0.50)=15.0\), exactly the stated mean.

The fitted selected mean is \(16-2p\). To impose the normalization \(g(1)=0\), write the correction as \(g(p)=\hat\beta(p-1)=-2(p-1)=2-2p\). The associated outcome component is \(\hat m(X)=\hat\alpha+\hat\beta=16-2=14\) units, since at \(p=1\) the fitted mean equals \(m(X)\). This is an exact calculation for the displayed linear fit; it does not establish that a linear correction is adequate in a real application.

Identification, Support, and Inference

An exclusion restriction is useful when it produces meaningful variation in selection probability while holding outcome covariates fixed. In a flexible additive model, the data need enough such variation to distinguish changes in \(m(X)\) from changes in \(g(p)\). If \(p\) is effectively determined by \(X\), the two components may be difficult or impossible to separate without stronger functional-form restrictions. A nominal exclusion that barely moves selection probabilities may provide little practical information.

Support matters in two ways. First, selected observations must exist over the covariate and probability region where the conditional mean is to be estimated. Second, the normalization \(g(1)=0\) is informative only if the observed support reaches one or comes sufficiently close for a credible approximation. A flexible series cannot create information in regions with no data; estimates there are extrapolations.

The estimated probability is a generated regressor: it is calculated using parameters estimated from the same data. Consequently, ordinary second-stage standard errors that act as if \(\hat p_i\) were fixed can be incorrect. Inference should account for first-stage estimation and series approximation, using an appropriate joint or resampling procedure. The earlier material on Murphy-Topel inference discusses the general issue of generated corrections in two-step estimation.

Common Mistakes

  • Using a marginal selection-error distribution as if it were conditional. The equality \(p(X,Z)=1-F_V(-\eta(X,Z))\) requires a common conditional distribution of \(V\mid X,Z\), as ensured by the independence assumption here. Without it, use the appropriate conditional distribution and establish that a stable control representation is valid.
  • Assuming that “semiparametric” means assumption-free. The unknown correction function avoids a specified Gaussian formula, but the control-function representation, exclusion restriction, support, and approximation conditions still matter.
  • Claiming that an exclusion alone guarantees identification. An excluded variable must actually shift selection at comparable outcome covariates, and the resulting variation must be sufficiently rich and supported.
  • Treating the fitted correction as causal evidence. The estimated conditional mean describes outcomes under the maintained selection and outcome assumptions. It does not by itself establish a causal effect of \(Z\), which is excluded from the outcome equation.
  • Ignoring the first-stage estimate in standard errors. The control is estimated, not observed. Inference must reflect that estimation and the chosen series approximation.
Key takeaway: With a stable joint distribution of outcome and selection errors, the selected mean correction can be expressed as an unknown function of the selection probability without assuming Gaussian errors. Flexible estimation is credible only when excluded-variable variation, probability support, normalization, and generated-regressor inference are handled explicitly.

Check Your Understanding

Try these questions before reviewing the derivation.

  1. Why does the formula \(p(X,Z)=1-F_V(c(X,Z))\) require a condition on the distribution of \(V\mid X,Z\)?
  2. Under the stated assumptions, explain why the event \(V>c\) is equivalent to \(W>1-p\), where \(W=F_V(V)\).
  3. If an excluded variable changes the selection probability but has no direct outcome effect, what does its variation help identify in the additive selected-mean model?
  4. Why can \(m(X)\) be difficult to recover when the observed selection probabilities are far from one, even if the selected conditional mean is well estimated over its observed support?
  5. What uncertainty is omitted if second-stage standard errors treat the estimated selection probability as fixed?
Clinical Biostats