Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: AW: Qestion about Heckman Test


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: AW: Qestion about Heckman Test
Date   Tue, 5 May 2009 16:26:55 +0200

<> 

To echo Maarten`s sentiment, you probably wanted more than just a -display- if only because the value itself is displayed in the regression results anyway. So to turn the ephemeral -ereturn- value into something more lasting, here are two approaches...


*************
webuse womenwk, clear
heckman wage educ age, select(married children educ age) two
di in red "Here comes lambda: " e(lambda)
ereturn list
//possibilities:

// as a -macro-:
local lambda=e(lambda)
ma di 
di "lambda as a local: " `lambda'

//as a permanent variable: 
gen mylambda=e(lambda)
//see the first 20 obs of this variable...
l myla in 1/20, noobs
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Maarten buis
Gesendet: Dienstag, 5. Mai 2009 16:23
An: [email protected]
Betreff: Re: st: AW: Qestion about Heckman Test


--- On Tue, 5/5/09, ?? wrote:
> How can I see e(lambda) after twostep Heckman Test? 
> I need this data to do additional analysis. It is said that
> heckman saves
> e(lambda). 

--- On Tue, 5/5/09, Martin Weiss wrote:
> *************
> webuse womenwk, clear
> 
> heckman wage educ age, select(married children educ age)
> two
> 
> di in red "Here comes lambda: " e(lambda)
> *************

In addition, see the User's Guide chapter 13.6: "Accessing results 
from Stata commands".

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------





      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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