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

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

From   Antoine Terracol <>
To   StataList <>
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,

* For searches and help try:

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