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/