Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: What is EGEN_Varname and EGEN_SVarname ?


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: What is EGEN_Varname and EGEN_SVarname ?
Date   Tue, 31 Jul 2012 09:32:06 +0200

On Mon, Jul 30, 2012 at 11:25 PM, Pradipto Banerjee wrote:
> 2. On a standalone basis, what does it mean if we use "_all" such as in `"`args'"' =="_all"? I already AWARE of the usage(s) of _all in -drop _all-, -program drop _all- etc. This usage of `"`args'"' =="_all" is NOT documented in the programming manual!

"_all" is just a string containing the characters _all, so that line
just checks whether the contents of the local macro `args' is equal to
the string "_all". There is not much to document here  otherwise one
would have to document the "a" is a string containing the character a,
"b" is a string contraining the character b, etc. etc.

> 3. In the -egen- code, what the following line achieve? Or intends to achieve?
>
> local args : subinstr local args "`_sortindex'"  "", all word

see -help extended_fcn-

-- Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------
*
*   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   |   Site index