Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -every(#)- option in -postfile-


From   Antoine Terracol <[email protected]>
To   StataList <[email protected]>
Subject   st: -every(#)- option in -postfile-
Date   Mon, 19 Aug 2002 17:29:43 +0200

Dear all.

If I type

postfile myfile [list of statistics names] using test.dta, replace double every(1)
local i=1
while `i'<=100 {
...
do stuff
...
post myfile [list of statistics]
local i=`i'+1
}
postclose myfile

Stata will in fact post the new results to the file test.dta every 2 iterations: 2 rows of data at the end of the third iteration, 2 more at the end of the fifth, and so on

Is there a way to force Stata to post results at every iteration of a loop, as specified by the -every(#)- option?

Thaks in advance,
Best,
Antoine.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index