Statistical analyses based on non-randomly selected samples can lead to erroneous conclusions. The Heckman correction, a two-step statistical approach, offers a means of correcting for non-randomly selected samples. Heckman discussed bias from using nonrandom selected samples to estimate behavioral relationships as a specification error. He suggests a two-stage estimation method to correct the bias. The correction uses a
control function idea and is easy to implement. Heckman's correction involves a
normality assumption, provides a test for sample selection bias and formula for bias corrected model. Suppose that a researcher wants to estimate the determinants of wage offers, but has access to wage observations for only those who work. Since people who work are selected non-randomly from the population, estimating the determinants of wages from the subpopulation who work may introduce bias. The Heckman correction takes place in two stages. In the first stage, the researcher formulates a model, based on
economic theory, for the probability of working. The canonical specification for this relationship is a
probit regression of the form : \operatorname{Prob}( D = 1 | Z ) = \Phi(Z\gamma), where
D indicates employment (
D = 1 if the respondent is employed and
D = 0 otherwise),
Z is a vector of explanatory variables, \gamma is a vector of unknown parameters, and Φ is the
cumulative distribution function of the standard
normal distribution. Estimation of the model yields results that can be used to predict this employment probability for each individual. In the second stage, the researcher corrects for self-selection by incorporating a transformation of these predicted individual probabilities as an additional explanatory variable. The wage equation may be specified, : w^* = X\beta + u where w^* denotes an underlying wage offer, which is not observed if the respondent does not work. The conditional expectation of wages given the person works is then : E [ w | X, D=1 ] = X\beta + E [ u | X, D=1 ]. Under the assumption that the
error terms are
jointly normal, we have : E [ w | X, D=1 ] = X\beta + \rho\sigma_u \lambda(Z\gamma), where
ρ is the correlation between unobserved determinants of propensity to work \varepsilon and unobserved determinants of wage offers
u,
σ u is the standard deviation of u , and \lambda is the
inverse Mills ratio evaluated at Z\gamma . This equation demonstrates Heckman's insight that sample selection can be viewed as a form of
omitted-variables bias, as conditional on both
X and on \lambda it is as if the sample is randomly selected. The wage equation can be estimated by replacing \gamma with Probit estimates from the first stage, constructing the \lambda term, and including it as an additional explanatory variable in
linear regression estimation of the wage equation. Since \sigma_u > 0, the coefficient on \lambda can only be zero if \rho=0, so testing the null that the coefficient on \lambda is zero is equivalent to testing for sample selectivity. Heckman's achievements have generated a large number of empirical applications in economics as well as in other social sciences. The original method has subsequently been generalized, by Heckman and by others. == Statistical inference ==