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
[email protected]
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/