Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Continuing a loop inspite of errors


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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index