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: extracting coefficients from an -estimates- table
From
"Ariel Linden" <[email protected]>
To
<[email protected]>
Subject
st: extracting coefficients from an -estimates- table
Date
Thu, 13 Feb 2014 10:41:41 -0500
Hi All,
I would like to extract some values from stored estimates, but I am not sure
if there is a straightforward way other than extracting the values from the
r(coef) matrix? In the example below, I'd like to do the equivalent of :
domestic[mpg] - foreign[mpg]
****example*****
. sysuse auto
. regress price mpg if foreign==0
. estimate store domestic
. regress price mpg if foreign==1
. estimate store foreign
. estimate table domestic foreign
----------------------------------------
Variable | domestic foreign
-------------+--------------------------
mpg | -329.25507 -250.36681
_cons | 12600.538 12586.951
----------------------------------------
. di -329.25507 - -250.36681
-78.88826
****end example****
Thanks
Ariel
*
* 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/