Bookmark and Share

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


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

Re: st: regression coefficient by group


From   Jorge Eduardo Pérez Pérez <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: regression coefficient by group
Date   Mon, 5 Dec 2011 13:28:45 -0500

See -help statsby-
_______________________
Jorge Eduardo Pérez Pérez



On Mon, Dec 5, 2011 at 1:18 PM, Rui Zeng <[email protected]> wrote:
> Dear Statalisters,
>
>  I want to collapse my dataset by a group variable and retain the regression coefficient of the independent variables. In other  words, I'd like to be able to do something like:
>
> by group: egen regression coefficients =regress(var1 var2 var3 var4)
> collapse corr12, by(group)
>
>
> I know I can do:
> by group: regress var1 var2 var3 var4
> but I want to save the results and do further analysis on them rather than just displaying them.
>
>
> thanks!
> *
> *   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/
>
>


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index