- Introduced by
- James J. Heckman
- Year
- 1979
- Type
- Two-step sample selection model
What does it do?
The Heckman selection model, introduced by James J. Heckman in 1979, corrects sample selection bias when the outcome is observed only for a non-random subset of cases.
A probit selection equation models who is observed, and the outcome equation then includes the inverse Mills ratio as a correction term. The model can be estimated in two steps (Heckit) or by full maximum likelihood.
The intuition behind the method
Suppose you want to model wages, but you only observe wages for people who chose to work. If the same unobserved traits that push someone to work also raise their wage, the working sample is not a random slice of the population and a plain regression on it is biased. The Heckman model first explains who ends up in the sample, then carries that information into the outcome equation as a correction term, so the estimated effects reflect the whole population rather than just the self-selected group.
History
James J. Heckman introduced the model in his 1979 Econometrica paper. He framed sample selection bias as a specification error, equivalent to omitted-variables bias, and proposed a simple, consistent two-stage estimator that allows the correction to be carried out with ordinary regression methods. The approach has been widely used in applied microeconometrics and is commonly known by the shorthand 'Heckit' and as the Tobit Type II model.
When to use it
Use the Heckman model when the dependent variable is observed only for a self-selected subsample, such as wages for people who work or repayment behaviour for approved loan applicants, and you have reason to believe the selection is correlated with the outcome. As a rough minimum rule of thumb the model is usually estimated with at least about 100 observations, but the sample needed depends on the strength of the exclusion restriction: identification is weak when the excluded variables vary little or are strongly correlated with the outcome-equation regressors, so the estimates should be checked for stability. The model requires an exclusion restriction: at least one variable that affects selection but has no direct effect on the outcome, justified on theoretical or economic grounds. The Mills-ratio correction assumes bivariate normal errors; if that assumption is doubtful, a semiparametric alternative that does not impose it may be more appropriate. If selection is unrelated to the outcome, or if the outcome is censored at a limit rather than selected, a different model is needed, such as a standard OLS on the observed sample or a Tobit model.
Limitations and considerations
- Requires a credible exclusion restriction; without a variable that affects selection but not the outcome, identification rests fragilely on the model's functional form.
- Assumes bivariate normal errors, and the maximum-likelihood version is sensitive to this assumption.
- Needs a reasonably large sample (about 100 or more); the two-step estimator is less efficient than full maximum likelihood.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Directly corrects sample selection bias when the outcome is only observed for a non-random subsample.
- The two-step Heckit estimator is transparent: the inverse Mills ratio term makes the selection correction explicit and testable.
- Applicable to classic non-random observation problems such as labour-force participation, credit approval, and survey non-response.
Applications
- Estimating wage equations when wages are observed only for individuals who participate in the labour force.
- Modelling loan repayment or default outcomes that are observed only for approved credit applicants.
- Any setting where the outcome is recorded only for a self-selected group, such as survey non-response or program participation.
How it works
How it works
The model has two linked equations. A selection equation describes a latent propensity to be observed; when that latent value crosses zero the case is selected (s = 1). The outcome y is generated by a second linear equation but is only observed for the selected cases. Because the same errors drive both equations, selection is not random with respect to the outcome.
Formula
s_i^* = Z_i\gamma + u_i,\quad s_i = \mathbf{1}[s_i^* > 0];\quad y_i = X_i\beta + \varepsilon_i \text{ observed iff } s_i = 1In the first step, a probit on the selection equation gives the predicted index, from which the inverse Mills ratio λ is computed for each selected case. In the second step, the outcome equation is estimated with λ added as an extra regressor. Its coefficient is ρσε, so it absorbs the selection effect and the coefficients on X are corrected for bias. The standard errors from this second-step OLS regression do not account for the fact that λ is estimated in the first step, so they must be corrected for the estimated first-stage index, as derived in Heckman (1979), or obtained from a joint maximum likelihood estimator or a packaged Heckit routine that performs this correction. A significant λ coefficient is evidence that selection is correlated with the outcome under the model's assumptions; it is not conclusive proof of bias, and a non-significant coefficient does not establish that selection is absent. Full maximum likelihood estimates both equations jointly and is more efficient, but it is more sensitive to the bivariate normality assumption.
Formula
E[y_i \mid X_i, s_i = 1] = X_i\beta + \rho\sigma_\varepsilon\,\lambda(Z_i\hat{\gamma}),\quad \lambda(\cdot)=\frac{\phi(\cdot)}{\Phi(\cdot)}Common pitfalls
- Using the same regressors in both equations with no genuine exclusion restriction, leaving the correction identified only by the nonlinearity of the Mills ratio.
- Choosing an exclusion restriction that is not theoretically justified, which undermines the credibility of the whole model.
- Trusting the maximum-likelihood estimates when the bivariate normality assumption is badly violated instead of considering a semiparametric alternative.
- Applying the model to very small samples where the selection correction is unstable.
- Reporting the standard errors from the second-step OLS regression without correcting for the estimated first-stage index, which overstates the significance of the coefficients on X and on the inverse Mills ratio.
- Interpreting a significant coefficient on the inverse Mills ratio as proof of selection bias, or a non-significant one as proof that selection is absent; misspecification of either equation can also produce a significant term.
Frequently asked questions
What is the inverse Mills ratio in the Heckman model?
It is a correction term computed from the first-stage probit, equal to the standard normal density divided by the cumulative distribution function of the selection index. Adding it as a regressor in the outcome equation absorbs the selection effect. A significant coefficient on it is evidence that selection is correlated with the outcome under the model's assumptions, but it can also reflect misspecification of either equation, so it is not conclusive proof of bias.
What is an exclusion restriction and why do I need one?
An exclusion restriction is at least one variable that influences whether a case is observed but has no direct effect on the outcome. It anchors the identification of the selection correction; without it, the model is identified only through functional-form assumptions and the estimates become fragile.
Should I use the two-step Heckit or full maximum likelihood?
The two-step Heckit is simpler and more transparent, and it is a consistent estimator under the model's assumptions. Full maximum likelihood is more efficient but more sensitive to the bivariate normality assumption. Both rely on bivariate normal errors, so when normality is doubtful, a semiparametric alternative is worth considering whichever estimator you use.
How is the Heckman model different from a Tobit model?
A standard (Type I) Tobit handles censoring where the same equation governs both the limit and the value. The Heckman model (Tobit Type II) uses two separate equations, one for selection and one for the outcome, so the process determining whether you observe a case can differ from the process determining its value.
Related methods
Sources
Heckman, J. J. (1979). Sample Selection Bias as a Specification Error. Econometrica, 47(1), 153–161.
Open DOI referenceIntroduction to Econometrics, 3rd edition, p. ?