Here is another method:
sysuse auto, clear
tabstat mpg price weight head gear turn trunk, by(fore) save
matrix A1 = r(Stat1)
matrix A2 = r(Stat2)
matrix total = r(StatTotal)
matrix A3 = A1', A2', total'
matrix coln A3 = `=r(name1)' `=r(name2)' Total
mat2txt, matrix(A3) saving(mytable1) format(%9.3f) replace
Scott
________________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Monday, July 18, 2005 4:56 PM
To: [email protected]
Subject: st: table formating procedures
Hi everyone,
�
I'm still having trouble getting stata to layout descriptive tables the way
I need them. Is there any manual that would have tables & instructions on
how to create them? I'm having a hard time figuring it out from the regular
stata manuals & help. I'm trying to get a table of means for multiple
variables by�category�of variable1�and total:
�
���������� var1=A var1=2 var1=3 total
var2
var3
var4
var5
var6
var7
�
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/