Statalist


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

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


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: minor bug in -describe-?
Date   Wed, 29 Oct 2008 17:26:16 -0400

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/



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