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

Re: st: valid invalid syntax


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: valid invalid syntax
Date   Thu, 22 Apr 2004 09:07:50 -0400

How interesting.

In fact, the comma seems to toggle back and forth between options and pre-option stuff. Check out, for example:

logit foreign mpg price weight , robust , if rep78>2 , or , in 1/72 , score(myscore)

which gives the same results as

logit foreign mpg price weight in 1/72 if rep78>2 , robust or score(myscore)

Undocumented feature? Bizarre bug?

--Nick Winter

At 02:08 PM 4/22/2004 +0200, you wrote:

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  [email protected]                 :
: 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/
--------------------------------------------------------
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
308 White Hall falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index