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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: suppressing header information in eststo/esttab


From   Isaac Sorkin <isorkin@umich.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: suppressing header information in eststo/esttab
Date   Sun, 11 Mar 2012 19:48:25 -0400

Dear Statalist:

I am using eststo and esttab to create a bunch of table fragments that
I then want to combine together.  In particular, I am computing
statistics of the data.  I want to omit the header that says which
statistic is being displayed (since this will show up elsewhere in a
manual part of the table).

My code is:

eststo: quietly estpost tabstat CoolPeople , statistics(sum) columns(statistics)
esttab using "file.tex" ,  fragment cells(sum(fmt(0) ))  unstack
nonote nonumber nomtitles

This generates a file like:

                          &     sum&     sum&     sum& sum&     sum\\
\hline
CoolPeople                            &      130&      247&      474&
257&      196     \\
\hline
Observations                         &     195&     256&     914 &
330&     241\\

I would like the file to look like:

\hline
CoolPeople                            &      130&      247&      474 &
  257&      196     \\
\hline
Observations                         &     195&     256&     914& 330&     241\\

Help?

Thanks.

Isaac

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