Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: using several model results in a loop


From   Thomas <thomas.triebs@econ.cam.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: using several model results in a loop
Date   Thu, 29 Jun 2006 15:32:12 +0100

Dear all,

I would like to use stored model results in a loop like this:

foreach x of model m1 m2 m3{
est restore `x'
ovtest
hettest
}

This does not work. How can I refer to results in a loop?

Many thanks in advance!

Thomas


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index