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: Exporting summary tables, appending a column


From   uatz@mail.uni-mannheim.de
To   statalist@hsphsun2.harvard.edu
Subject   st: Exporting summary tables, appending a column
Date   Mon, 24 May 2010 18:08:13 +0200

Dear Statalisters,

I'm trying to learn how to generate print-ready table outputs, so I can automate it in a document.
Specifically, I wondered what is a feasible way to achieve the following design:


			| group1    | group2   | group3   | group2+group3
-----------------------------------------------------------------------
var1		| mean      | mean      | mean     | mean

var2		| mean      | mean      | mean     | mean

observation 	| count      | count      | count      | count


So far, my closest approach included the -esttab- command:

. estpost tabstat fue fuepriv, by(cut) s(n mean) c(s) listwise nototal

. esttab using "tables/est", main(mean %12.0fc) aux(count) /// 
	noobs nogaps nonote nomtitles nonumbers nostar ~etc.

However, (#1) the aux() adds a row underneath every variable and, more importantly, (#2) appending a column seems impossible to me.

Thanks,
Ulrich


Department of Small Business Research & Entrepreneurship
Institute for Small Business Research
University of Mannheim
L9, 1-2
68161 Mannheim
uatz@mail.uni-mannheim.de


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