--- On Tue, 10/11/09, Kaulisch, Marc wrote:
Is there an opportunity to add a second column variable?
sysuse auto, clear
sum price, meanonly
gen byte expensive = price > r(mean) if price < .
label define expensive 0 "cheap" 1 "expensive"
label value expensive expensive
eststo a: estpost tabulate rep78 foreign
eststo b: estpost tabulate rep78 expensive
esttab a b using "c:\temp\foo" , rtf replace ///
cell("b colpct(fmt(2))") collabels(n %) ///
mtitles("origin" "expensive") nonumber ///
unstack noobs ///
drop("Total:" "Domestic:Total" "Foreign:Total")
I still guess it would be simpler and more intuitive to add
functiontionality in the tabulate functions...
Creating a program that will make the one table you want is
easy, the problem is creating a program that will make all
tables that everybody wants. I agree with you that such a
capability would be very welcome, but I also appreciate that
StataCorp is taking its time to get it right.
-- Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/