Hi there,
I need to generate loops according to the number of variables (unknown
beforehand) in the ado program.
For example, if one uses two variables, then I want to do the following loop
forvalues i=1/10{
forvalues j=1/32{
.......
}
}
if one specifies three variables, then the loop looks like this
forvalues i=1/10{
forvalues j=1/32{
forvalues k=1/47{
.......
}
}
}
and so on....
How can I do this? Thanks in advance.
Le
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Le Wang, Ph.D.
Minnesota Population Center
University of Minnesota
(o) 612-624-5818
*
* 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/