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   Oliver Jones <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index