Heckman selection correction models outcome observation and a continuous outcome jointly. Learn the inverse Mills ratio, sign conventions, identification requirements and two-step inference through an exact reporting example.
Heckman selection correction
Heckman selection correction is a model-based method for estimating an outcome regression when the outcome is observed only for a selected subset and unobserved influences on selection are correlated with the outcome error. It models both observation and the outcome, then corrects the selected sample's conditional mean. In quantitative research, this matters when a database contains voluntarily reported performance: a regression among reporters may describe a different relationship from the one across all eligible managers.
The method addresses a particular form of selection bias. Its credibility comes from assumptions about the observation mechanism, rather than from adding a correction variable to an arbitrary incomplete dataset.
Two equations, two different unobserved quantities
Let Yi∗ be a continuous outcome that exists for every unit in the target population. Write
Yi∗=xi′β+εi,Si=1{zi′γ+ui>0}.
We observe Yi=Yi∗ only when Si=1. A missing outcome for Si=0 is not a zero. Selection indicators and selection covariates zi must be available for both groups; outcome regressors xi are needed for the selected observations used in estimation.
The unit selection-error variance fixes the scale of a latent index whose sign alone is observed. Constant σ and ρ, the linear outcome equation and the normal joint error law are substantive restrictions. Separate normal marginal distributions would not establish joint normality. The basic cross-sectional estimator also assumes independent sampling. These are the model assumptions, not properties demonstrated by a normal-looking histogram of reported outcomes. Stata's official explanation gives the joint-normal selection setup.
Set ai=zi′γ, and let ϕ and Φ denote the standard normal density and cumulative distribution function. Then
P(Si=1∣xi,zi)=Φ(ai),λ(ai)=Φ(ai)ϕ(ai).
Joint normality gives E[εi∣ui]=ρσui. Averaging over the retained tail ui>−ai therefore yields the conditional expectation
E[Yi∗∣xi,zi,Si=1]=xi′β+ρσλ(ai).
The inverse Mills ratio λ captures the selection-related mean shift. Omitting it can distort an ordinary least squares regression; which slopes change depends on how this omitted term varies with the included regressors.
The sign follows the selection rule. Our rule retains ui>−ai, so λ(ai)>0 and the shift has the sign of ρ. Writing the threshold as c=−ai gives the equivalent expression ϕ(c)/(1−Φ(c)). For the other group, the conditional error mean is −ρσϕ(ai)/(1−Φ(ai)). Reversing the selection indicator changes the index and associated correlation convention. A memorized ratio without its inequality can give the wrong correction. The Stata FAQ explains these conventions.
A reported mean of 10.798 can coexist with a population mean of 10
Consider a fictional manager score at one fixed covariate profile. Stipulate an all-candidate mean of 10, outcome-error standard deviation σ=2, selection index a=0, and error correlation ρ=0.5. These are chosen model inputs, not fitted manager data.
Half the candidates report because Φ(0)=0.5. Among reporters,
The mean of 10 is unconditional on reporting, while holding the covariates fixed. Reporters have a higher expected error because the reporting error and score error are positively correlated. This does not establish manager skill or a causal benefit from reporting. Nor does it demonstrate slope bias: this single-profile example isolates a mean shift.
Exact fictional outcome densities at fixed covariates. All candidates have mean score 10 and outcome-error standard deviation 2. With latent selection index 0 and error correlation 0.5, half report and the reported score mean is 10.798. Both outcome densities extend below and above score 10.
Original exact normal-model calculation, not a simulation or observed performance. Selection acts on a separate latent error, so it does not create a hard cutoff in the outcome score.
Estimation needs information about non-reporters
The familiar two-step procedure is:
Fit a probit selection model for Si using both observed and unobserved-outcome units. Compute λi=ϕ(zi′γ)/Φ(zi′γ).
Among Si=1 units, regress Yi on xi and λi. Its additional coefficient estimates δ=ρσ, not ρ by itself.
If the archive lists only reporters, its contents alone cannot supply the first-stage reporting denominator. A defined eligible population and selection data are needed. The two-step construction and its covariance formula appear in Stata's methods documentation.
The second-stage disturbance has selection-dependent variance, and λi is an estimated regressor. Ordinary second-stage standard errors ignore first-stage uncertainty. Use inference derived for the two-step estimator, or a justified bootstrap that refits both stages and respects the sampling structure. Applying heteroscedasticity-robust errors only to the final regression does not generally account for the generated regressor. Full maximum likelihood is another estimation route under the joint model; it does not remove its assumptions.
Identification is more than fitting a probit
A defensible exclusion restriction provides a variable in z that changes observation probability but has no direct effect on the outcome conditional on x, and is exogenous to the outcome error. For a reporting study, a randomly assigned administrative reminder might be a candidate. It would still require evidence that it changes reporting and cannot alter the measured performance. A variable is not valid merely because leaving it out makes the calculation work.
Under the normal model, nonlinearity of λ can supply identification without an excluded variable when the covariate support provides sufficient variation. This is functional-form identification, not a general guarantee: constant or insufficiently varied selection indices can leave the augmented regression unidentified. Over a restricted index range, λ can be nearly linear in the outcome regressors, creating multicollinearity, weak separation of selection from the outcome relationship, and unstable estimates. A weak excluded predictor can leave the same practical difficulty. Honoré and Hu's author manuscript explains the dependence of identification on distributional and exclusion assumptions.
Correlated errors allow missingness not at random: after conditioning on observed covariates, whether the outcome is seen can still depend on its unobserved component. The normal selection model specifies one such mechanism; the observed data do not validate every extrapolation to missing outcomes. With ρ=0, this model's conditional mean shift disappears, but an insignificant estimate does not prove every selection problem absent.
A Tobit model instead censors an outcome at a known boundary under its own structure. Reporting selection, omitted confounders, failed strategies omitted from a search log and unavailable delisting returns need their own data and assumptions. Heckman correction is not a universal repair for these problems, nor does it confer a causal interpretation on β.
For the regression foundation, Regression Assumptions and Diagnostics explains why a failure of the conditional mean requires a different response from a failure of the error covariance. The public page is a preview; the full lesson requires membership.
Sources
Stata, heckman — Heckman selection model, “Methods and formulas,” pp. 15–17 — selection equation, two-step estimator and covariance correction; model options, pp. 4–5.