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 at the end of May, 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   Oliver Jones <ojones@wiwi.uni-bielefeld.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: Continuing a loop inspite of errors
Date   Wed, 25 May 2011 14:00:25 +0200

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/


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