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/