Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: How to retrieve coefficient of a model using "by company name:..."


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How to retrieve coefficient of a model using "by company name:..."
Date   Sun, 30 Oct 2011 08:50:29 +0100

On Sat, Oct 29, 2011 at 4:29 PM, Owusu-Ansah, Stephen wrote:
>> I have just run a regression "by company_name:", which gives me regression statistics for each company
>> in my dataset <snip>
>> Now, I want to make use of the estimated coefficient for each company on the only variable in the
>> above model, spci_rm, to run another regression. How can I get these coefficients automatically
>> transferred or summarized by company to be transferred to another dataset without manually
>> inputing the coefficients in the dataset for the second regression that I want to run.

On Sun, Oct 30, 2011 at 12:27 AM, Robson Glasscock wrote:
> Take a look at -help ereturn- and -help postest-
> Regression coefficients are saved in the e(b) matrix subsequent to
> estimation. One of Stata's loop commands (-foreach- etc.) may be used
> to automate the process.

The automation is already done in -statsby-, see -help statsby-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index