Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Dependent variable in a tobit model


From   Clive Nicholas <[email protected]>
To   [email protected]
Subject   Re: st: Dependent variable in a tobit model
Date   Tue, 16 Nov 2010 18:45:13 +0000

Austin Nichols replied to Estrella Gomez:

[...]


> drawnorm x e, n(100) clear seed(1)
> g y=round(exp(x-5+e),.01)
> g lny=ln(y)
> g ly=max(lny,ln(.005))
> tobit ly x, ll(`=ln(.005)')
> heckman lny x, sel(x)
> g y2=ln(y+.005)
> g y1=ln(y-.005)
> intreg y1 y2 x



© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index