You can specify an if condition with the -use- command, i.e.,
use hugefruitbasket if(symbol == "apple")
That will read only the cases where symbol is "apple." Obviously you can
put this into a foreach loop.
HTH
------------------------------------------------------------------------
Richard J. Stoll * Professor of Political Science * Rice University
Dept. Political Science MS 24 * P.O. Box 1892 * Houston TX 77251-1892
E-mail: [email protected] * Tel: 713-348-3362 * FAX: 713-348-5273
*
* 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/