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]

Re: st: how to show "dots" in a loop?


From   daniel klein <klein.daniel.81@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to show "dots" in a loop?
Date   Thu, 19 Apr 2012 00:37:13 +0200

forv j = 1/100  {
    log off <logname>
    if !mod(`j', 5) di _c "`j'"
    else di _c "."
    log on <logname>
}

Best
Daniel

-- 
Hi all,
[...]
I would now like to report something every iteration, but I would
avoid seeing thousands of lines filled with this, esp. in my log. Long
story short: can I somehow print dots as wrapper commands like
bootstrap do?
[...]

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