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: Terminating a loop with a value trigger


From   Stephen Cranney <[email protected]>
To   [email protected]
Subject   st: Terminating a loop with a value trigger
Date   Sat, 30 Mar 2013 09:33:10 -0400

Hi all,

Is there a way to continue a loop until a certain value is reached in
one of the calculations ? (Obviously not just until the macro hits a
certain point, but a calculation inside the loop that involves the
macro). As far as I can tell, "exit "and "continue, break" don't allow
some kind of "if" option.

Thanks in advance,

Stephen
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index