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: Defining upper limit of loop
From 
 
Nabin Kafle <[email protected]> 
To 
 
"[email protected]" <[email protected]> 
Subject 
 
st: Defining upper limit of loop 
Date 
 
Wed, 11 Dec 2013 16:08:21 -0600 
Is there a way that I can use the forvalues command in stata in a way
that I upper value of the loop can be defined from the varibale list.
forvalues i = 1/"var name" {
code for loop
*
*   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/