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: -estadd- locals don't appear in output
From
Johannes Haushofer <[email protected]>
To
[email protected]
Subject
Re: st: -estadd- locals don't appear in output
Date
Sat, 11 May 2013 10:12:01 -0400
That fixed it - many thanks Joerg!
j
On Sat, May 11, 2013 at 10:08 AM, Joerg Luedicke
<[email protected]> wrote:
> Try updating to the latest -estout- version (see -ssc des estout-), it
> should work then.
>
> Joerg
>
> On Sat, May 11, 2013 at 1:08 AM, Johannes Haushofer <[email protected]> wrote:
>> 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/
> *
> * 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/
*
* 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/