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

RE: st: calling the value of a scalar

From   "Nick Cox" <>
To   <>
Subject   RE: st: calling the value of a scalar
Date   Thu, 25 Sep 2003 18:08:38 +0100

Dev Vencappa

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

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index