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

st: RE: valid invalid syntax


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: valid invalid syntax
Date   Thu, 22 Apr 2004 13:15:47 +0100

This is perfectly legal. See [U] 14.1.7 (p.97
for version 8 manuals). 

I wouldn't recommend it because I think 
it makes logs more difficult to read and 
programs more difficult to debug, but
that's a different matter. 

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

Lars Korsholm
 
> marking biostat exam my students have used the following 
> "invalid" stata
> syntax for egen, but with succes.
>  egen gr=cut(x) , at(.1,.3,.5,.8,1) ,if y==1
> wich give the same result as
>  egen gr=cut(x) if y==1 , at(.1,.3,.5,.8,1)
> 
> Have any of you experinced other occations of violation of the
> commandname varlist [in if], options
> syntax
> 
> should this be okay or should I send a bug rapport to stata?

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