[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Displaying percentages from -tabstat- results

From   Marshall Garland <>
Subject   st: Displaying percentages from -tabstat- results
Date   Wed, 17 Jun 2009 14:22:14 -0500

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.
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") ///

*   For searches and help try:

© Copyright 1996–2023 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index