Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[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 <>
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 L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index