Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Ozgur Ozdemir <ozdemirozgur@hotmail.com> |
To | Stata <statalist@hsphsun2.harvard.edu> |
Subject | st: For each loop |
Date | Sun, 30 Oct 2011 12:09:17 +0000 |
Hi, I have the following list of variables tobin_q_2000, tobin_q_2001....tobin_q_2010 and would like to get some summary stats. i am using the following code but do not know why it does not work. forvalues i=2000/2010{sum tobin_q_'i'} it is giving the error message "tobin_q_ ambiguous abbreviation" and do not know why. any help is appreciated. kind regards Ozgur Ozdemir * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/