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: -estadd- locals don't appear in output


From   Johannes Haushofer <[email protected]>
To   [email protected]
Subject   st: -estadd- locals don't appear in output
Date   Sat, 11 May 2013 01:08:19 -0400

Dear all,

I'm having trouble adding locals to models stored with -eststo- using
-estadd-. Adding scalars works fine, but locals simply don't appear in
the output. Here is an example:

sysuse auto, clear
eststo: quietly regress price mpg foreign
estadd local hasrep "No"
eststo: xi: quietly regress price mpg foreign i.rep78
estadd local hasrep "Yes"
esttab, drop(_Irep78*) scalars("hasrep rep dummies")

This produces the following output:

--------------------------------------------
                      (1)             (2)
                    price           price
--------------------------------------------
mpg                -294.2***       -299.6***
                  (-5.28)         (-4.73)

foreign            1767.3*         1102.3
                   (2.52)          (1.22)

_cons             11905.4***      10856.2***
                  (10.28)          (4.79)
--------------------------------------------
N                      74              69
rep dummies
--------------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001

...when really the output should be:

--------------------------------------------
                      (1)             (2)
                    price           price
--------------------------------------------
mpg                -294.2***       -299.6***
                  (-5.28)         (-4.73)

foreign            1767.3*         1102.3
                   (2.52)          (1.22)

_cons             11905.4***      10856.2***
                  (10.28)          (4.79)

rep dummies            No             Yes
--------------------------------------------
N                      74              69
--------------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001

I'm using Stata/SE 12.0 for Mac (64-bit Intel), revision 24 Aug 2011,
and the following command versions:
-esttab-: *! version 1.3.2, Ben Jann, 29may2007
-estadd-: *! version 2.0.6, Ben Jann, 28feb2007
-eststo-: *! version 1.0.4, Ben Jann, 03may2007

Any hints about how to get the locals to appear in the output would be
much appreciated.
Many thanks!
johannes
*
*   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