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

st: clarifying question about nested & parallel loops


From   Radu Ban <rban@nber.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: clarifying question about nested & parallel loops
Date   Thu, 10 Apr 2003 20:06:35 -0400 (EDT)

dear all,

my previous post was probably to specific (and long) so i'm writing
one more to the point.

i would like to know if it possible to nest two parallel loops
within two parallel loops, using the -for- command. i know it is
an outdated command but i haven't figured out how to make parallel
lists with -foreach-.

namely, i'm lookin at something like:

for X in any anylist1a \ Y in any anylist1b : for Z in num a/b \ A
in any anylist2: replace XZ = "Y:A";

when i run this i get only:

--> for Z in num a/b
syntax error

can anyone shed some light.

thanks so much,

radu ban




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