<>
Hello-
I'm using -xml_tab- in conjunction with -tabstatmat- to mass produce
tables for 14 separate levels (campuses). However, I can't seem to
find a way to display percentages in the resulting tables. Is there a
way to specify that the statistics be displayed as percentages
(ideally with the percentage sign) rather than proportions? I can't
seem to find that option in either -xml_tab- or -tabstatmat-.
Thanks for your help.
Cheers,
-mwg
Here is my code:
local table2 "q6_anycollege q6_5-q6_9"
levelsof schnum, local(levels)
foreach l of local levels {
tabstat `table2' if schnum==`l', by (survey_year) save nototal
tabstatmat table2`l'
matrix TAB=table2`l''
xml_tab TAB, save (`working'`l'.xml) sheet(table2) replace format((S2110) ///
(N2203)) lines(COL_NAMES 2 LAST_ROW 3) font("Times New Roman" 12) ///
cnames ("2007" "2008" "2009") ///
title("blah")
}
*
* 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/