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

st: type5 tobit and imr


From   ordinary least squares <[email protected]>
To   [email protected]
Subject   st: type5 tobit and imr
Date   Tue, 2 Nov 2004 03:42:24 -0800 (PST)

Dear listers,
I try to conduct switching regression without using
movestay which requires Stata8. 

Specification
y1=a1+b1x1+u1 if d=1
y2=a2+b2x2+u2 if d=0
d=cz+v

Command in Stata7
probit d z
predict phat,xb
gen
mills1=exp(-.5*phat^2)/(sqrt(2*_pi)*normprob(phat))
gen
mills2=exp(-.5*phat^2)/(1-(sqrt(2*_pi)*normprob(phat)))
reg y1 x1 mills1
reg y2 x2 mills2

Is this correct? Any help will be appreciated.



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 

*
*   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