Statalist


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

RE: AW: st: local containing (all) variables' names in a dataset


From   Ulrich Kohler <kohler@wzb.eu>
To   statalist@hsphsun2.harvard.edu
Subject   RE: AW: st: local containing (all) variables' names in a dataset
Date   Wed, 19 Aug 2009 10:37:30 +0200

Right. This wasn't meant as an alternative to -ds- but as an answer to
the initial question. 

Uli

Am Dienstag, den 18.08.2009, 17:55 +0100 schrieb Nick Cox:
> But that's minimal -ds-. Supporting all the options is the tricky thing
> -- and conversely the extra strength given by the options is why people
> should want to use -ds- in the first place. 
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> Ulrich Kohler
> 
> -unab- does the trick as well and is documented:
> 
> . unab a: _all
> . local b  make rep78
> . local c:list  a - b
> . disp "`c'"
> 
> 
> Am Dienstag, den 18.08.2009, 09:39 -0500 schrieb Eric A. Booth:
> > Thanks for the clarification, Nick.  I made the erroneous assumption  
> > that an increase in the number after -ds- (e.g., ds2, ds3, ds5...)  
> > meant newer versions of the program.
> > 
> >    Since -ds- is now an undocumented/unofficial command,  I am curious
> 
> > whether there are other commands that have its functionality.  In the
> 
> > "previously documented" link in the -ds- help file it says:
> > 
> > " Previously documented commands are commands of Stata from a previous
> 
> > release that are no longer documented because they have been  
> > superseded by more recent, better commands. "
> > 
> > I see that you can grab a c(varlist) from commands like -desc- and you
> 
> > could probably use extended macro functions to piece together what - 
> > ds- does, but is there another command that has -ds- 's functionality
> 
> > built in & supersedes -ds- ??
> > 
> 
> *
> *   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