Bookmark and Share

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]

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


From   "Narahari H.S." <[email protected]>
To   [email protected]
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 <[email protected]> wrote:

> From: Oliver Jones <[email protected]>
> Subject: Re: st: Re: Continuing a loop inspite of errors
> To: [email protected]
> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index