Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Heckman comand sample issue

From   fatma bircan <[email protected]>
To   [email protected]
Subject   Re: st: Heckman comand sample issue
Date   Wed, 21 Apr 2004 15:20:08 +0300

Why not replace ln wages =0 when they are missing. You should also
define a binary variable which takes the value of 1 when the person is
a wage earner and zero otherwise. In your case ilf=1 if there is labor
force participation and ilf=0 if otherwise. Check also other variables
for missing values. To consider the whole sample you should replace
them with zero in case they have missing values. 


>Dear Statalist users,
>please excuse if this is a basic question, however, I could not find
>answer or the right search terms to find it in the archives.
>I have a data set with about 600,000 observations, of which about
>are wage earners. In it, I would like to run the heckman command to
>correct for sample selectivity bias. My earnings variable is
>and thus has missing values for all observations that do not have a
>recorded wage. Hence, if I run my heckman with:
>Heckman ln_wages varlist1, sel(ilf = varlist1 varlist2), 
>where varlist2 are my exclusion restrictions and ilf is a
>dummy, the number of observations comes down to 90,000 (ilf does not
>only take the value of 1, since I failed to clean the data
>My aim is to run the selection function on the whole sample (of
>obs), and to get stata to run the wage function without the missing
>observations. The only solution I found was to replace all missing
>values with -9999 in ln_wages.
>Is there some better way to tell stata to use the whole sample for
>selection function, even if ln_wages is missing?
>Thank you very much in advance for your help.
>*   For searches and help try:
Fatma Bircan
Middle East Technical University
Department of Economics


*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index