Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: AW: RE: RE: variable labels and reshape--reinserting en masse


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: AW: RE: RE: variable labels and reshape--reinserting en masse
Date   Mon, 19 Apr 2010 16:20:29 +0100

I guess that is never going to happen. 

I don't know if you were using Stata around 2000, but no end of messes
followed people's misunderstanding of how local macros worked with
-for-. 

One-line loops and macros really don't mix in the way that many users
would want because local macros are necessarily interpreted before
execution. My FAQ explains in more detail: 

Stata 7: Why do I get puzzling results with the for command and local or
global macros?
http://www.stata.com/support/faqs/lang/macros.html

Nick 
[email protected] 

[email protected]

I personal think that the idea of one-liner-loops including parallel
lists is still a good one. 
A successor that overcomes some of the limitations discussed be???e and
uses locals instead of capital letters
would be a nice addition to the Stata toolbox.

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index