









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










There is some confusion as to what the cause of selection issues actually is. So we should begin by outlining the problem up front. I’ll provide two examples that come from Sartori (2003, 114) and Achen (1986, 73-76).
Say we want to estimate the effect of education on women’s wages. The OLS regression for this would be
yi = xiβ + ≤i (1)
where yi is the woman’s wage and xi is her education. The basic selection problem arises in that the sample consists only of women who choose to work and these women may differ in important unmeasured ways from women who do not work. For example, women who are smarter may be more likely to enter the labor market. The ‘selection equation’ for entering the labor market might be:
Ui = wiγ + ui (2)
where Ui represents the utility to woman i of entering the labor market and wi is a vector of factors known to influence a woman’s decision to work such as her education level. ui is assumed to be jointly normally distributed with ≤i and contains any unmeasured characteristics in the selection equation. We don’t actually observe Ui. All we observe is a dichotomous variable Zi with a value of 1 if the woman enters the labor force (Ui > 0 ) and 0 otherwise. So, where does the selection problem actually come from? Well, there are two selection effects.
Suppose that an admissions committee want to know how GRE scores affect the likelihood of success in graduate school. The problem is that information about success in graduate school (grades) is only available for those students who were admitted. The admissions committee wish to forecast outcomes in the whole pool of applicants but are forced to rely solely on experience with a non-random subset of them. Let’s assume that we have the following model. The selection equation for getting admitted might be
Admission Rating = γ 0 + γ 1 GRE + ui (3)
Admission =
1 if Admission Rating ≥ 0 0 if Admission Rating < 0
where ADMISSION RATING is the latent variable measuring the underlying propensity to be admitted, GRE represents a student’s GRE score, and Admission is a dichtomous variable indicating whether the student was admitted or not. The outcome equation is
Success =
β 0 + β 1 GRE + ≤i if Admission= Unobserved if Admission = 0
Admitted graduate students are not representative of applicants generally as the admission equation makes clear. There are many college graduates with low grades who attempt to enroll in graduate school; only a few succeed. These exceptions usually owe their success to favorable (unmeasured) personal charac- teristics other than grades. While many of these personal characteristics will have no affect on their success in graduate school, it seems reasonable to think that some of them probably will. As a result, there will be some students with low grades who make into graduate school because they have large error terms (they have strong personal characteristics). As a result, this low-grade subset of students will perform above the level of other applicants with the same college grades and so they are no longer representative. Now suppose the admissions committee examine graduate student grades to compare the performance of those who entered with low GREs to those who entered with high GREs. The group of students who were admitted because they had strong GREs will be representative of the group of applicants with strong GREs. However, the subset of admitted students with low GREs will not be representative of the group of applicants with low GREs - they will perform better in graduate school (because of their large disturbance terms due to personal characteristics) than applicants with low GREs that were not admitted. Ultimately, it may appear that students with high GREs do not outperform students with low GREs in graduate school. The admissions committee might be tempted to conclude that GREs do not predict success. However, intuition makes it clear that this result does not extend to the applicant pool where students with low GREs would, in general, perform quite poorly had they been admitted. In effect, if a random sample of applicants were admitted to graduate school, GREs would be a good predictor of their success.
Note that a selection problem does not exist in two types of situations (Achen 1986, 78-79). First, it might be the case that the unmeasured factors influencing the selection equation are uncorrelated with the unmea- sured factors influencing the outcome equation. In other words, we would have to assume in our second example that the unmeasured personal characteristics that get a low-GRE student into graduate school are uncorrelated with the unmeasured factors that influence success in graduate school. In effect, we would
3 Heckman Model
The Heckman model essentially just applies the moments of the incidentally truncated bivariate normal distribution to a data generating process similar to that outlined in the first section of the notes. Let’s start with a basic selection equation
z i∗ = wiγ + ui (9)
zi =
1 if z i∗ > 0 0 if z i∗ ≤ 0
and a basic outcome equation
yi =
xiβ + ≤i if z i∗ > 0 − if z i∗ ≤ 0
As noted above, problems arise when estimating β if ui and ≤i are correlated. Note that it should now be obvious that the tobit model is the special case where yi = zi. Typically, we also make the following assumption about the distribution of, and relationship between, the error terms in the selection and outcome equation:
ui ∼ N (0, 1) ≤i ∼ N (0, σ^2 ) corr(ui, ≤i) = ρ (10)
Put differently, we typically assume a bivariate normal distribution with zero means and correlation ρ. There is no generally accepted name for this model. Amemiya (1985, 384) calls it a ‘type 2 Tobit model’. Others call it a ‘generalized tobit model’ or simply the ‘sample selection model’. We’ll refer to it as the Heckman (1979) model.
Now that we have our basic setup, all we have to do is insert these into the relevant equations for the moments of the incidentally truncated bivariate normal distribution given earlier. Thus,
E[yi|yi is observed] = E[yi|z∗ i > 0] = E[xiβ + ≤i|wiγ + ui > 0] = xiβ + E[≤i|wiγ + ui > 0] = xiβ + E[≤i|ui > −wiγ] (11)
If the errors ≤i and ui are independent, then the last term simplifies to E[≤i]=0 and OLS regression of yi on xi will give consistent estimates of β. However, any correlation between the two errors means that the truncated mean is no longer xiβ and we need to take account of selection. Thus, we need to obtain E[≤i|ui > −wiγ] when ≤i and ui are correlated. As Greene (2003, 782) notes,
E[≤i|ui > −wiγ] = ρσ≤λi(αu) (12)
where αu = −σwui γ, λ(αu) =
φ( −σuwi γ) 1 −Φ( −σuwi γ) =^
φ( wσuiγ ) Φ( wσuiγ ). Thus, the conditional mean in the Heckman model
(bivariate selection model) is:^2
E[yi|yi is observed] = E[yi|z∗ i > 0] = E[xiβ + ≤i|wiγ + ui > 0] = xiβ + E[≤i|wiγ + ui > 0] = xiβ + E[≤i|ui > −wiγ]
= xiβ + ρσ≤
φ( wσiuγ ) Φ( wσiuγ )
= xiβ + ρσ≤λi(αu) = xiβ + βλλi(αu) (15)
Note that this is where our earlier equation ( 4 ) came from. Thus, we now have
yi|z∗ i > 0 = E[yi|z∗ i > 0] + νi = xiβ + βλλi(αu) + νi (16)
Again, this clearly illustrates that OLS on just the outcome equation would lead to biased and inconsistent estimates because βλ(αu) is omitted. Note that the variance equation in ( 6 ) implies that even if λi(αu) were included in the model, OLS would be inefficient since νi is heteroskedastic.
So, what are the marginal effects in the Heckman model? The marginal effect of the independent variables on yi in the observed sample consists of two components.^3 First, there is the direct effect of the independent variable on the mean of yi which is captured by β. Second, there is an indirect effect if the independent variable also appears in the selection equation. This is because a change in some x not only changes the mean of yi, but also the probability that an observation is actually in the sample i.e. it will affect yi through λ(αu). Thus, the marginal effect of x on yi in the observed sample is
∂E[yi|z∗ i > 0] ∂xik = βk − γk
ρσ≤ σu
δi(αu) (17)
(^2) It is interesting to note the connection with the tobit model. In the Heckman model we have
E[yi|z i∗ > 0] = xiβ + ρσ≤λi(αu) (13)
In the tobit model from last week, we have
E[y|y > 0] = xiβ + σλ(α) (14)
As you can see, the main difference is that there is a separate latent variable doing the censoring in the Heckman model that is different to the variable determining the outcome equation. This difference also requires that we take account of the correlation between the disturbances in the selection and outcome equations i.e. the ρ. (^3) Note that this is typically the quantity of interest. We might occasionally be interested in the marginal effect of variables for the whole sample - those observed in the sample and those not observed in the sample. However, you would need to use a different equation for this.
The Heckman model can also be estimated by MLE. However, to do so requires making a stronger assumption than those required for the two-step procedure. For MLE, we need to assume that ui and ≤i are distributed bivariate normal with mean zero, that ui ∼ N (0, 1), that ≤i ∼ N (0, σ^2 ), and that corr(ui, ≤i) = ρ. Thus, the MLE estimation is not as general as the two-step procedure. As Wooldridge (2002, 566) notes, another drawback is that this procedure is less robust than the two-step procedure and is sometimes difficult to get it to converge. However, MLE estimation will be more efficient if ui and ≤i really are jointly normally distributed. To see the loglikelihood for the MLE version, see the appendix in chapter 5 of Berinsky (2004) or the STATA manual.
3.4.1 Standard Errors
Note that the standard errors in the outcome equation will need to be corrected. There are two reasons for this. The first is that we have heteroskedasticity if βλ 6 = 0 (i.e. if we have selection bias). We could easily correct for this by using robust standard errors. However, there is a second reason why our errors need to be corrected. ˆγ is an estimator of γ. This means that λˆ is also just an estimator of λ. We need to take account of the fact that our inverse Mills ratio is estimated with uncertainty. This second reason means that we cannot just simply use robust standard errors - we need to do something more complicated. To see a discussion of how the standard errors are corrected, see Heckman (1979), Wooldridge (2002, 564) and Greene (2003, 785). STATA will automatically correct the standard errors for you.
3.4.2 Identification
Note that, technically, the Heckman model is identified when the same independent variables in the selection equation appear in the outcome equation. However, identification only occurs on the basis of distributional assumptions about the residuals alone and not due to variation in the explanatory variables. Identification is essentially possible due to the non-linearity in the selection equation (the non-linearity is introduced into the outcome equation through the inverse Mill’s ratio). However, this is not the only problem that arises if you have all of the variables from the selection equation in the outcome equation. You will probably get imprecise estimates in the outcome equation. In fact, if there is little variation in wiγ in the selection equation, then ˆλ can be approximated quite well by a linear function of w. If this is the case, you will have difficulty getting precise estimates in the outcome equation because you will have high multicollinearity and large standard errors. This is the case even if you don’t include all of the variables from the selection equation in the outcome equation. Basically, the point is that if the selection equation is not very good at determining selection, then you are likely to get imprecise estimates in the outcome equation. Because of issues with identification, we nearly always want at least one independent variable that appears in the selection equation but does not appear in the outcome equation i.e. we need a variable that affects selection, but not the outcome (Sartori 2003, 112). As you might expect, it may be difficult to think of a variable that affects selection but not the outcome. But this is what you need to do! Many people will either just drop a variable from the outcome equation or add a variable to the selection equation – however, this is often theoretically unmotivated and means that the outcome or selection equation is incorrectly specified. One solution is that presented by Sartori (2003).
3.4.3 Selection Bias
The coefficient on the inverse Mill’s ratio will indicate if there is selection bias. If the coefficient is statis- tically significant, then we know that there was selection bias. However, it is somewhat hard to say much if the coefficient is not significant. We can say that there is no selection bias as we have formulated the selection equation. However, this is assuming that we have the selection equation correct.
4 Selection Bias in Binary Choice Models
The Heckman model is useful for handling linear regression models when there is a selection mechanism at work i.e. when the outcome equation involves a continuous dependent variable. However, we are often interested in cases where the outcome equation involves a dichotomous dependent variable. In effect, we would have a probit selection equation and a probit outcome equation.^6 Neal Beck calls this a ‘double probit model’ but it appears that few others do. As we’ll see, most people call it a ‘bivariate probit model with selection’ and this corresponds to the ‘heckprob’ command in STATA. Before we get to the bivariate probit model with selection, let’s start by looking at the straightforward bivariate probit model.
In the bivariate probit model, we have two separate probit models with correlated disturbances in the same spirit as the seemingly unrelated regression models (SUR).^7 In effect, we have two binary dependent vari- ables, yj , j = 1, 2. These often represent two interrelated decisions by some actor. For example, Staton (2006) uses a bivariate probit model because he is interested in modeling a court’s decision (i) to invalidate policies that are challenged and (ii) to issue a press release about its decision. You could also think of a decision to vote for a House and Senate candidate on the same ballot or a state’s decision to adopt two different, but related, policy initiatives. The basic idea is that the two decisions are interrelated. Thus, we might have the following model
y∗ 1 = x 1 β 1 + ≤ 1 y∗ 2 = x 2 β 2 + ≤ 2
where y∗ j are unobservable and related to the binary dependent variables yj by the following rule
yj =
1 if y j∗ > 0 0 if y j∗ ≤ 0
for j=1, 2. If the errors between the two probit models are independent of one another i.e. Cov[≤ 1 , ≤ 2 ] = 0, then we can just estimate the two probit models separately. But, what happens if we have:
≤ 1 i = ηi + u 1 i ≤ 2 i = ηi + u 2 i
In other words, the errors in each model consist of a part (ui) that is unique to that model and a second part (ηi) that is common to both - the error terms are correlated. We might assume that all three types of errors (^6) You could, of course, use logit, but it seems that virtually everyone uses probit. (^7) Much of this section comes from notes by Zorn.
If ρ = 0, then the two variables (or errors) are independent and the Φ 2 reduces to two separate standard normal distributions. If ρ 6 = 0, then the two variables (errors) are correlated and the probability of one variable will be dependent on the value/probability of the other. If ρ = 1, then the two variables are essentially (exactly) the same. If ρ = − 1 , then the two are exactly negatively related i.e. their scales are reversed. We use the Φ 2 distribution to estimate bivariate probit models. In other words, we typically assume that the errors are independent and identically distributed as a standard bivariate normal with correlation ρ i.e.
E[≤ 1 |x 1 , x 2 ] = E[≤ 2 |x 1 , x 2 ] = 0 Var[≤ 1 |x 1 , x 2 ] = Var[≤ 2 |x 1 , x 2 ] = 0 Cov[≤ 1 , ≤ 2 |x 1 , x 2 ] = ρ
This is often written as ≤ 1 i, ≤ 2 i ∼ φ 2 (0, 0 , 1 , 1 , ρ). Given this, we can now make probability statements about yi. For example,
P r(y 1 i = 1, y 2 i = 1) =
∫ (^) ≤ 1 i
−∞
∫ (^) ≤ 2 i
−∞
φ 2 (x 1 β 1 , x 2 β 2 ; ρ)d≤ 1 id≤ 2 i
= Φ 2 (x 1 β 1 , x 2 β 2 ; ρ) (27)
As in the standard probit model, each observation contributes some combination of P r(yk = 1) for k ∈ 1 , 2 depending on their specific values on those variables. In other words, the log-likelihood is just a sum across the four possible transition probabilities (i.e. the four possible combinations of y 1 and y 2 ) multiplied by their associated probabilities. The log-likelihood for the bivariate probit model is
lnL =
i=
{yi 1 yi 2 lnΦ 2 (x 1 β 1 , x 2 β 2 ; ρ)
where Φ 2 (·, ·; ρ) denotes the bivariate standard normal cdf with correlation coefficient ρ and Φ(·) is the univariate standard normal cdf we have seen before. Just to clarify, Φ(x 1 β 1 ) − Φ 2 (x 1 β 1 , x 2 β 2 ; ρ) is just the probability that y 1 = 1 minus the probability that y 1 = y 2 = 1. In other words, it captures Pr(y 1 = 1, y 2 = 0). To estimate this model in STATA, you have two options. You can type:
if you have the same independent variables in each probit model. Or, you can estimated a seemingly unre- lated version of the bivariate probit model by typing
This allows you to have different independent variables in each of the probit models. The models are the same.
4.3.1 Model Fit
Two separate probits are ‘nested’ in the bivariate probit model since they occur if ρ = 0. Thus, we can test the hypothesis that the bivariate probit model fits the data better than the separate probits by conducting a likelihood ratio test. For the separate probits, the joint likelihood is just the product of the two separate (marginal) likelihoods. This means that the joint log-likelihood is just the sum of the two log-likelihoods. We can compare this joint log-likelihood of the separate models to that for the bivariate probit model using a standard LR test. You can also calculate predicted probabilities and compare them to actual outcomes as we did in previous weeks when we looked at probit etc..
4.3.2 Marginal Effects
We can look at the coefficients and their standard errors to determine the direction and statistical significance of the individual variables. There are several different expected values that you might be interested in. You may be interested in the unconditional mean function:
E[y 1 ] = Φ(x 1 β 1 ) E[y 2 ] = Φ(x 2 β 2 ) (29)
You could then look at marginal effects by taking the derivative of these with respect to some independent variable of interest. This is exactly the same situation as when we discussed the univariate probit models earlier in the semester. However, you may also be interested in the conditional mean function:
E[y 1 |y 2 = 1] = P r(y 1 = 1|y 2 = 1) = P r(y 1 = 1, y 2 = 1) P r(y 2 = 1)
=
Φ 2 (x 1 β 1 , x 2 β 2 ; ρ) Φ(x 2 β 2 )
You could take the derivative of this with respect to some independent variable to get the marginal effects (see Greene (2003, 713)).
4.3.3 Predicted Probabilities
Probably better is to calculate predicted probabilities or changes in predicted probabilities;
P r(y 1 = 1, y 2 = 1) = Φ 2 (x 1 βˆ 1 , x 2 βˆ 2 ; ˆρ) P r(y 1 = 1, y 2 = 0) = Φ(x 1 βˆ 1 ) − Φ 2 (x 1 βˆ 1 , x 2 βˆ 2 ; ˆρ) P r(y 1 = 0, y 2 = 1) = Φ(x 2 βˆ 2 ) − Φ 2 (x 1 βˆ 1 , x 2 βˆ 2 ; ˆρ) P r(y 1 = 0, y 2 = 0) = 1 − Φ(x 1 βˆ 1 ) − Φ(x 2 βˆ 2 ) − Φ 2 (x 1 βˆ 1 , x 2 βˆ 2 ; ˆρ)} (31)
You can get STATA to produce predicted probabilities by typing
It follows directly form this that the log-likelihood function for this version of the bivariate probit model with partial observability is:
lnL =
i=
{zilnΦ 2 (x 1 β 1 , x 2 β 2 ; ρ) + (1 − zi)ln[1 − Φ 2 (x 1 β 1 , x 2 β 2 ; ρ)]} (32)
where Φ 2 (x 1 β 1 , x 2 β 2 ; ρ) = P r(y 1 i = 1, y 2 i = 1) = P r(zi = 1). This is the bivariate probit model with partial observability that you can estimate in STATA. To see how, consider the data set in Table 1. With partial observability, we know only that 14 outcomes are positive for both y 1 and y 2. Thus, you’ll have a variable z that has 14 observations coded as 1 and 60 observations coded as 0. So, how do you estimate this model? You need to use STATA’s ‘biprobit’ command. However, to use the biprobit command, you need two dependent variables - this is a problem since you only have one i.e. z = y 1 × y 2. All you need to do is to create another variable that is identical to z, say z 2 and add this into the model as well. Thus, you would type:
You can use the same commands as before to put in different variables for each of the individual actors that determine z. Table 1: Possible Data for Bivariate Probit Model with Partial Observability y 2 0 1 Total
0 26 26 52 y 1 1 8 14 22
Total 34 40 74
In this model, y 1 and y 2 are determined sequentially and the errors (≤ 1 and ≤ 2 ) are assumed uncor- related. Abowd and Farber’s example is of an individual who decides to enter a queue and then subsequently decides whether or not to accept an offer upon reaching his turn in the queue. This is the version of the bivariate probit model with partial observability used by Przeworski and Vreeland (2002). From this setup we have:
P r(z = 1) = Φ(x 1 β 1 )Φ(x 2 β 2 ) P r(z = 0) = 1 − [Φ(x 1 β 1 )Φ(x 2 β 2 )]
It follows from this that the log-likelihood function is just
lnL =
i=
{zilnΦ(x 1 β 1 )Φ(x 2 β 2 ) + (1 − zi)ln[1 − Φ(x 1 β 1 )Φ(x 2 β 2 )]} (33)
This version of the bivariate probit model with partial observability is not canned in STATA but can be estimated in LIMDEP.
6 Bivariate Probit with Sample Selection
This is the equivalent of Heckman’s selection model except now we have a probit model in the selection equation and a probit model in the outcome equation. This model has various names - ‘double probit’, ‘bivariate probit with sample selection’, ‘censored probit’, ‘bivariate probit with partial partial observabil- ity’. This model is somewhere between a bivariate probit model and a bivariate probit model with partial observability. For example, we observe more than in the partial observability model but less than in the full bivariate probit model. In the terminology that we have been using, we observe xi, yi 1 and zi = yi 1 × yi 2. Essentially, we observe y 2 if and only if y 1 = 1 (this is so because if yi 1 = 1, then yi 2 = zi and zi is observed. However, if yi 1 = 0, then we have no information about yi 2 ). Thus, the first probit equation is completely observed, but we have only a selected (censored) sample for the second. Note that in terms of the four possible outcomes, two (yi 1 = 0, yi 2 = 1 and yi 1 = 0, yi 2 = 0) are indistinguishable. This is an improvement in observability relative to the bivariate probit model with partial observability, which had three indistinguishable outcomes. Berinsky (2004) provides an example of this model when he examines attitudes towards race issues. He argues that he has a selected sample since he only observes race attitudes for those people willing to answer the question in the first place. Thus, the first probit model is whether the respondent answers the question and the second probit model is their dichotomous attitude towards race issues.
There are three types of observations in a sample with the following probabilities.
y 1 = 0 P r(y 1 = 0) = Φ(−x 1 β 1 ) y 1 = 1, y 2 = 0 P r(y 1 = 1, y 2 = 0) = Φ(x 1 β 1 ) − Φ 2 (x 1 β 1 , x 2 β 2 , ρ) y 1 = 1, y 2 = 1 P r(y 1 = 1, y 2 = 1) = Φ 2 (x 1 β 1 , x 2 β 2 , ρ)
From this, it is easy to generate the log-likelihood function
lnL =
i=
{yi 1 yi 2 lnΦ 2 (x 1 β 1 , x 2 β 2 ; ρ)
As with the Heckman model, you’d want to include at least one variable in the selection equation that does not appear in the outcome equation. To estimate this model in STATA, you type:
References
Abowd, John M. & Henry S. Farber. 1982. “Job Queues and the Union Status of Workers.” Industrial and Labor Relations Review 35:354–367.