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

st: Re: valid invalid syntax


From   "Steichen" <steichen@triad.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: valid invalid syntax
Date   Thu, 22 Apr 2004 09:12:58 -0400

Lars --

The double-comma form has been legal as long as I can remember, though I do
not believe it is documented in the current manuals. In fact, I believe you
can legally add yet another comma and include more options after that third
comma.   This issue has been discussed on this list by StataCorp staff, but
not recently.

Tom

----- Original Message ----- 
From: "Lars Korsholm" <korsholm@stat.sdu.dk>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, April 22, 2004 8:08 AM
Subject: st: valid invalid syntax


> Hi listers
>
> 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?
>
> Best Lars
>
>
> ..............................................
> : Lars Korsholm Ph.D.,                       :
> :  Department of Statistics                  :
> :  University of Southern Denmark            :
> :  Sdr. Boulevard 23A, 2.                    :
> :  DK-5000 Odense C                          :
> : Phone +45 6550 3608 (or 3868)              :
> : Mobil +45 3033 3617                        :
> : Fax   +45 6595 7766                        :
> : Mail  korsholm@stat.sdu.dk                 :
> : Web   http://www.biostat.sdu.dk/~korsholm  :
> :............................................:
>
>
> *
> *   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/
>

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