Hi all
I ran a regression and straight after that ran a dwstat test for the durbin watson statistic. I saved the result in a scalar called b as follows:
scalar b=r(dw)
Because I am working within a repetitive loop, I want stata to check if this value of the durbin watson for each of the units I compute is less or equal to some specified value. How can I do that? Can sombody help please? I can only call the scalar to list the values stored in b, but don't know how to ask stata to check the above condition.
Many thanks
Dev
Dev Vencappa
School of Economics
University of Nottingham
University Park
Nottingham
NG7 2RD
U.K.
Tel : +44 (0)115 951 5608
Fax: +44 (0) 115 951 4159
*
* 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/