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

RE: st: Re: -levels- question


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Re: -levels- question
Date   Thu, 18 Sep 2003 19:02:04 +0100

Danielle H. Ferry

> Thank you, Nick & Roger! I can see that Nick's & Roger's answers are
> essentially the same. One more (macro) question: Why isn't
> it necessary in
> Roger's solution to put a space between _fvalcur_ and
> _:label (mpg)_ ?

... because Stata's parser is splitting the command line
into tokens. It is crawling along character
by character:

1. following its own rules on legal names, the
colon cannot be part of the macro name;

2. so the "r" of "fvalcur" must be
the last character of that name
and the ":" must be something else;

and

3. a colon is legal at that point.

Nick
n.j.cox@durham.ac.uk

*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index