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: ESTPOST strange behavior
From 
 
Carsten Sauer <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: ESTPOST strange behavior 
Date 
 
Wed, 19 Sep 2012 22:45:02 +0200 
Hi,
specify the cell option:
esttab . using D:\Gdrive\Drop\Dropbox\STATADO\paper\tabstat.tex, replace 
label cell(A B C D E)
Example:
------
sysuse auto
estpost tabstat price weight length ,  s(count mean p25 med p75)
esttab . using test, cell(price weight length) replace
-----
Best, Carsten
Am 19.09.2012 22:08, schrieb patrick patrick:
Dear all
I am using estpost in order to export in latex a simple table
but when I type
-estpost tabstat A B C D E,  s(count mean p25 med p75)
Summary statistics: count mean p25 p50 p75
      for variables: A B C D E
              |      e(A)       e(B)       e(C)       e(D)       e(E)
-------------+-------------------------------------------------------
        count |    130152     130152     130152     128751     128751
         mean |  118.4549   12.76874  -456.4158  -22.37209   19.15267
          p25 |         7          3       -366        -51         -8
          p50 |        28          5      -40.8        -23         21
          p75 |       105         11   96.10001          5         49
  esttab . using D:\Gdrive\Drop\Dropbox\STATADO\paper\tabstat.tex, replace label
(output written to D:\Gdrive\Drop\Dropbox\STATADO\paper\tabstat.tex)
everything seems correct ...
however... the file tabstat.tex has only the tabular structure and no content
{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{1}{c}}
\hline\hline
                     &\multicolumn{1}{c}{(1)}\\
                     &\multicolumn{1}{c}{} \\
\hline
\hline
Observations        &      596125         \\
\hline\hline
\multicolumn{2}{l}{\footnotesize \textit{t} statistics in parentheses}\\
\multicolumn{2}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
}
what is wrong here ?
Many thanks
  		 	   		
*
*   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
SFB 882 "Von Heterogenitäten zu Ungleichheiten"
Teilprojekt A6 "Die Legitimation von Ungleichheiten - Strukturelle Bedingungen von Gerechtigkeitseinstellungen"
Fakultät für Soziologie
Universität Bielefeld
Postfach 10 01 31
33501 Bielefeld
Tel.: 0521 106-70056/-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/