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: Esttab format question


From   "Perez, Victoria" <vep@wharton.upenn.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Esttab format question
Date   Tue, 25 Jun 2013 19:58:42 +0000

Hello,



I am trying to output summary tables from Stata to Latex. I need the number of observations in each category and the column percent. The problem is that the counts are large numbers and I need them presented with commas. I have tried a few different formats (%#.#gc, %#.#fc) nest to the respective stat (b) or as the option f(c 1p), but I keep getting an error that these are not valid formats/options. Is there a way to get commas included in the table? 

estpost tab v1 v2 

eststo e1

estpost tab v1 v2 if v3==1

eststo e2

estpost tab v1 v2 if v3==0

eststo e3

esttab e1 e2 e3 using tabletest.tex, cells("b(fmt(f)) colpct(fmt(1))") collabels("Count" "\%") replace nonum noobs









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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index