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

st: RE: RE: Saving results


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

I decided I rather liked the idea of being able to do this using a by-style prefix, so I have just sent a new package that will do this to SSC.

The command will then become...

bystore region: regress tempjan tempjuly

storing the results with names _ENE, _EN_Cntrl, _ESouth and _EWest.

David
[email protected]

-----Original Message-----
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)

-----Original Message-----

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


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