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, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: st: Fwd: Saving results in program/loop

From   Christopher Baum <>
Subject   re: st: Fwd: Saving results in program/loop
Date   Mon, 1 Mar 2010 12:59:54 -0500

I am trying to do a Monte Carlo experiment. Inside the program there is a
loop that performs a given regression 100 times with different
specifications for each of the simulations (5000). At the end, the program
pick up the minimum t statistic from each of the 100 set of simulations to
form a distribution . The problem I have is that I want to know from which
of those 100 regressions the minimum t stat come from. Therefore, I need to
save the intermediate results. I've tried with postfile, however, it only
saves the last set of 100 regressions and I want to have all of them. I've
tried putting the commands inside and outside the loop but I failed. Or at
least, if it is not possible to save the intermediate results, I would like
to know if there is some way of associating those minimum t stats with a
give iteration inside the loop.

ssc type zandrews.ado

for an example of how to do this.

Kit Baum   |   Boston College Economics and DIW Berlin   |
An Introduction to Stata Programming   |
An Introduction to Modern Econometrics Using Stata   |

*   For searches and help try:

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