Statalist The Stata Listserver


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

st: Re: statalist-digest V4 #2409


From   "jean ries" <jean.ries@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: statalist-digest V4 #2409
Date   Wed, 26 Jul 2006 11:09:19 +0200

I used the Stata 8 and wrote the following command to process a panel data as follows:

 by fundcode: regress fundreturn index

Then it reported the outcome for each fund (there are about 200 funds). Now how can we
collect the estimated parameters from them?

. statsby "regress fundretrun index" _b[index], by(fundcode) saving(whatever)

will save the betas to a file called "whatever.dta".


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