Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: minor bug in -describe-?


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: minor bug in -describe-?
Date   Wed, 29 Oct 2008 22:34:45 +0100

Ok, thanks for that! I thought that line 7 of describe.ado did the same as
-varlist- in -syntax- but your example has convinced me that it does not.
What is your take on the bug issue, then?


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sergiy Radyakin
Sent: Wednesday, October 29, 2008 10:26 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: minor bug in -describe-?

Hi Martin,

if one writes -varlist- variables must already exist in memory. But
you sometimes want:

        clear
        describe somevars using somefile.dta

to work.

Your modified version will work ok, but replace it with varlist and
see what happens.

Best regards,
    Sergiy Radyakin




On Wed, Oct 29, 2008 at 4:46 PM, Martin Weiss <martin.weiss1@gmx.de> wrote:
> Curiously, describe.ado takes -anything- in its -syntax- statement. If you
> copy it to your very own describe2.ado in your personal directory and
> restate that as -anything(everything)- then you  can pass it "in*" and it
> works as expected. I think that could be called a bug. Whether minor or
not,
> I do not want to decide... -help describe- indicates that it takes a
> -varlist- so why would one want -anything- and not -varlist- in the
-syntax-
> statement?
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Jeph Herrin
> Sent: Wednesday, October 29, 2008 6:53 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: minor bug in -describe-?
>
>
>
> -in- is a reserved word in Stata, but it's also a very
> common prefix for variable names. So I often run into
> this:
>
> . d in*
> varlist not allowed
> r(101);
>
>
> Obviously, -describe- takes a varlist, but it won't take
> a varlist that looks like a reserved word. A bug, right?
> Or is there a reason for this?
>
> thanks,
> Jeph
>
>
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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