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

RE: st: RE: Taking averages, etc.


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Taking averages, etc.
Date   Wed, 17 Dec 2003 13:30:24 -0000

Let's not lose sight of where we started. 
Stata has standard constructs 

if ... { 
	
} 
else { 
	
} 

too; the point is that the conditional 
testing cannot be vectorised. 

Nick 
n.j.cox@durham.ac.uk 

Richard Williams
> 
> To me, an if-then-else structure is simpler, 
> clearer and less 
> error prone.  Not only is it used by SPSS, it is used by 
> most programming 
> languages I have worked with.  And, it is easy enough to 
> add comments 
> explaining what the code does, which I think should be done 
> with anything 
> you might go back to 6 months later.


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index