Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Narahari H.S." <naraharihs@yahoo.co.in> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Re: Continuing a loop inspite of errors |
Date | Wed, 25 May 2011 19:25:29 +0530 (IST) |
Thanks a ton, Nick and Oliver, for the simple solutions. This reminds me of the empty soap box problem :) (http://firstmediadesign.blogspot.com/2009/09/empty-soap-box-tale.html) Warm Regards Hari --- On Wed, 25/5/11, Oliver Jones <ojones@wiwi.uni-bielefeld.de> wrote: > From: Oliver Jones <ojones@wiwi.uni-bielefeld.de> > Subject: Re: st: Re: Continuing a loop inspite of errors > To: statalist@hsphsun2.harvard.edu > Date: Wednesday, 25 May, 2011, 5:30 PM > Am 25.05.2011 13:56, schrieb Oliver > Jones: > > Hi, > > maybe another way of doing it would be > > > > describe xxx*, varlist > > > > foreach var of varlist r(varlist) { > > sum `x' > > } > > I forgot the ` ' in the foreach statement. It should be > `r(varlist)' > > > > > Best > > Oliver > * > * 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/ > * * 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/