| From | [email protected] |
| To | [email protected] |
| Subject | st: foreach nesting |
| Date | Tue, 16 Sep 2003 04:36:43 -0400 |
Can the -foreach- command be nested? Stata crashes if I try to put a foreach inside another foreach.
for example:
local N "0 5 10";
local Y "y1 y2 y3";
foreach n in `N'
{foreach y in `Y'
{reg `y' X if t>`n' } };
thanks,
Al
*
* 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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |