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]

st: RE: how to use for* loops "noisily"?


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: how to use for* loops "noisily"?
Date   Thu, 29 Jul 2010 09:17:52 -0700 (PDT)

László,

You might try using -set tracedepth 1- after -set trace on- to keep the 
output to a reasonable level within loops.

David
--
David Radwin
Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

www.mprinc.com


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of László Sándor
> Sent: Thursday, July 29, 2010 9:06 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: how to use for* loops "noisily"?
>
> Hi all,
>
> Sorry I could not google this down (or find in the manual): I am
> trying to use some efficient code, much like the advice of Kit Baum's
> books and Stata tips, but if I use loops (-foreach- or -forvalues-)
> for everything (cases, specification, restrictions etc.), I rarely see
> anything going on, only estimation results are coded to get
> posted/displayed in this case [by Stata], and the occasional (=
> omnipresent) error message.
>
> I experimented with turning -set trace on-, but it did more harm than
> good. Some clumsy bracketing into -noisily- chunks did not help
> either.
>
> Is there something to do if I'd like to run this do-file as a regular
> do-file for all commands, in or out of loops?
>
> Thanks,
>
> Laszlo


*
*   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