Dear list,
I am used to using the "for" command to write a command that calls
members from more than one list in order. For example:
>for any a b c \ num 1/3 \ any g h i: gen XYZ = 0
would generate three variables named a1g, b2h, and c3i, each filled
with zeros.
I am trying to graduate from <for> to <forvalue> and <foreach>, and
wondered how I can do as above with these newer commands.
Thanks in advance.
Andy Eggers
Brookings Institution
Washington, DC
*
* 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/