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

st: RE: Saving results


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: Saving results
Date   Thu, 23 Dec 2004 10:38:37 -0000

In addition to -statsby-, you could also use -estimates store-.

In this case, you will need to break up your -by region...- bit to something like:

forvalues r=1/4 {
	regress tempjan tempjuly if region==`r'
	est store reg`r'
}
est table reg1 reg2 reg3 reg4, stats(N ll rmse)

Hope this helps,

David
[email protected]

-----Original Message-----
From: Cameron Hooper [mailto:[email protected]]
Sent: 23 December 2004 10:20
To: [email protected]
Subject: st: Saving results


Hi

How do I save the results of estimating a regression conducted using the 
by varlist: construct? e.g.

webuse citytemp3
by region, sort: regress tempjan tempjuly

ereturn list only contains the results of the last regression (which 
makes sense). How do I save earlier results?

Thanks in advance.

Cameron


*
*   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