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]

st: stored information for each regression equation--help please


From   Ken Ning <[email protected]>
To   [email protected]
Subject   st: stored information for each regression equation--help please
Date   Thu, 15 Aug 2013 23:04:27 +0100

Hi Stata users,


I am wondering if you know how to ask stata to gen a variable that
takes the value of stored information for each regression equation, as
it seems that the stored information is only for the last equation?

e.g.

sysuse auto
by foreign: reg price mpg rep78
by foreign: gen b=e(r2) (this does not work--could you please help?)

Many thanks,
Ken
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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