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: Show Command Output in Foreach Loop ...


From   Matthew McKay <matthew.mckay@anu.edu.au>
To   "<statalist@hsphsun2.harvard.edu> (statalist@hsphsun2.harvard.edu)" <statalist@hsphsun2.harvard.edu>
Subject   st: Show Command Output in Foreach Loop ...
Date   Mon, 1 Jul 2013 02:31:04 +0000

Statalist,

I have seen a few earlier remarks in 2007 about showing commands during foreach loops. 
Option 1:
Set trace on
Set tracedepth 1 
This doesn't work that well for me as it clumps the commands together and then the regression output together. 

Since then, is there a better way to show the issued command during a foreach loop?
Why can't it just simply show the executed lines and the regression as if the code was running outside of a foreach loop in one long sequence?

I have multiple datasets that I would like to run the same extensive set of analysis on. 
The smcl log file output is not very reader friendly without the command breaks printed in between each regression. 

Cheers,
Matthew
Phd Student
ACDE, Crawford School


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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