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: RE: Help with esttab


From   Miranda Kim <mk@mrc.soton.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Help with esttab
Date   Mon, 15 Mar 2010 09:23:27 +0000

Thanks Martin,
I'm still unsure how to obtain the format I described however, because I am using the cells() option with my variable names (the columns), as in the example below, rather than the statistics (the rows), and it is the statistics (p25 and p75) which I want to merge in the same cell...

sysuse auto, clear
estpost tabstat headroom weight gear_ratio, statistics(p50 p25 p75 count) by(foreign)
esttab, cells("headroom(fmt(2)) weight gear_ratio") noobs nomtitle nonumber

Best wishes,
Miranda

Martin Weiss wrote:
<>

*************
help estout, marker(cells)
*************

shows you how to join values in a cell. -esttab- accepts -estout- options...

HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Miranda Kim
Sent: Freitag, 12. März 2010 13:40
To: statalist@hsphsun2.harvard.edu
Subject: st: Help with esttab

Hi,
I am a Stata v11 user and I wonder if someone can help me with the following:

I want to produce a table in the following form:
sysuse auto, clear
estpost tabstat headroom weight gear_ratio, statistics(p50 p25 p75 count) by(foreign)
esttab, cells("headroom(fmt(2)) weight gear_ratio") noobs nomtitle nonumber

But I want the p25 and p75 on one line and in one cell rather than on 2 lines in separate cells (as an IQR, ie "p25-p75"), however I don't know how to do this for this type of table...

Best wishes,
Miranda

*
*   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