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

st: RE: valid invalid syntax

From   "Nick Cox" <>
To   <>
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. 


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:

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