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

Re: st: RE: RE: RE: Saving results


From   Cameron Hooper <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: RE: Saving results
Date   Fri, 24 Dec 2004 11:52:59 -0500

Thanks for taking the time to so this. I'm very new to Stata and very glad to have found such a supportive list. I've downloaded and run your program. Let's say I want to use the citytemp3 dataset supplied with Stata to estimate the regression tempjan = a + b*tempjuly + e for each region, and then calculate the mean intercept, mean slope coefficient, mean adjusted R squared, etc. Can I do this with bystore? If not, can you suggest the best place for me to start learning how to do this? Thanks again.

Cameron

David Harrison wrote:

Thanks to Kit, this command is now available from SSC.

ssc describe bystore

David
[email protected]

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

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


--
Cameron Hooper <[email protected]>
University of Michigan Business School
701 Tappan St., Ann Arbor, MI 48109
phone: 734-615-4178 fax: 734-936-0282
Public Key: http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0xFCCF8C91
*
* 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