Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: esttab question: how to drop certain stat. and a row?


From   Richard Herron <richard.c.herron@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: esttab question: how to drop certain stat. and a row?
Date   Mon, 31 Oct 2011 09:12:17 -0400

Use the -stats()- option in -esttab- to specify which stats you want
(-esttab- will drop all unlisted stats).

The -indicate()- option in -esttab- allows you to replace
dummies/interactions with a Yes/No row. Here is a link to the
explanation on the estout page.

http://repec.org/bocode/e/estout/advanced.html#advanced006

The estout package is available from ssc (i.e., -ssc install estout-).

On Mon, Oct 31, 2011 at 08:27, Heekyung "Hellen" Kim <hekim@mit.edu> wrote:
> Hi,
>
> How can I drop certain statistics (not coefficients)?
> Can I add a row like "Year Fixed Effect" in the first column; "Yes" in the
> second column?
>
> For example, I run a model:
> xtnbreg y x1 x2 i.group i.year
>
> I want to drop ln_r const & ln_s const in the table.
> I want to add two rows in two columns like "Year Fixed Effect Yes" "Group
> Fixed Effect" "Yes"
>
> Thanks!
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Carsten Sauer
> Sent: Sunday, October 09, 2011 1:33 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: how to put both coefficient and exponentiated form in a
> table using estout or similar command
>
> Try the following example:
>
> sysuse auto
> nbreg rep78 price mpg
> estadd expb
> estout, cells(b(star fmt(2)) se(par fmt(2)) expb (par([ ])))
> drop(lnalpha:) stats(N ll chi2, fmt(%8.0f %8.2f))
>
>
>
> Am 09.10.2011 18:44, schrieb Heekyung "Hellen" Kim:
>> Thank you so much for the reply.
>>
>> I can see that I can make a table with two columns using -esttab with
>> eform(0 1).  Is there a way for me to put the expontionated form under the
>> raw coefficient in a bracket in the same column?
>>
>> -----Original Message-----
>> From: owner-statalist@hsphsun2.harvard.edu
>> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard Herron
>> Sent: Saturday, October 08, 2011 5:06 PM
>> To: statalist@hsphsun2.harvard.edu
>> Subject: Re: st: how to put both coefficient and exponentiated form in a
>> table using estout or similar command
>>
>> Have you tried storing the regression with -eststo- then using
>> -esttab- with the -, eform- option?
>>
>> Here's a like to an example on the -estout- package page:
>> http://repec.org/bocode/e/estout/advanced.html#advanced001
>>
>> (The -estout- package is available from SSC:
>> http://repec.org/bocode/e/estout/index.html)
>>
>> On Sat, Oct 8, 2011 at 16:39, Heekyung "Hellen" Kim<hekim@mit.edu>  wrote:
>>> Hi, I want to use -estout (or anything like that) to have a result table.
>>>
>>> I am using xtnbreg or nbreg.  I want to put both coefficient and
>>> exponentiated form in ONE table.
>>>
>>> I can do one of each using estout without eform for the first and estout
>>> with eform option for expoentiated form.
>>>
>>> Is there any way to show both in one table ?
>>>
>>> estout, cells(b(star fmt(2)) se(par fmt(2))) drop(_I* o._I*) stats(N ll
>>> chi2, fmt(%8.2f))
>>> estout, cells(b(star fmt(2)) se(par fmt(2))) drop(_I* o._I*) stats(N ll
>>> chi2, fmt(%8.2f)) eform
>>>
>>> I used the above two line to have SEPARATE tables.  I wish to have one
>> table
>>> containing both.
>>>
>>> -Helen
>>>
>>> *
>>> *   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/
>>
>>
>> *
>> *   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/
>
> --
>
> Carsten Sauer
> Soziale Ungleichheit und Sozialstrukturanalyse
> Universität Bielefeld
> Fakultät für Soziologie
> Postfach 10 01 31
> 33501 Bielefeld
> Tel.: 0521 106-67291/-6948 (Sekr. Frau Fischer)
> Fax: 0521 106-6479
>
> *
> *   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/
>

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