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

st: RE: 2 Heckman regressions and Oaxaca decomposition


From   "Jann, Ben" <[email protected]>
To   <[email protected]>
Subject   st: RE: 2 Heckman regressions and Oaxaca decomposition
Date   Thu, 5 Feb 2004 21:32:54 +0100

log goho wrote:
> 1. When I tried Ben suggestion, stata doesn't find the variable LBDA.
> I have an error message saying that LDBA not found
...
> heckman   lwage varname...  if alien==0, select (varnames ) twostep 
> mills(lambda)
...
> decompose, lambda(lbda)
> ERROR MESSAGE

Uhh, I'm sorry, it should be 'lambda' not 'lbda' ('lambda' is the
variable containing the inverse mills ratio; of course one is free to
use any other name), i.e. your code should be:

 . heckman lwage varname...  if alien==0, select (varnames ) twostep
mills(lambda)
 . regress lwage varname... lambda if alien==0
 . decompose, save (high)
 . regress lwage varname... if alien==1
 . decompose, save(low)

 . decompose, lambda(lambda)

ben

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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