<>
Micahel: Use mata
***********
webuse total, clear
replace heartatk= heartatk*100
total heartatk [pw=swgt], over(sex)
mata
mata clear
Y=(st_matrix("e(b)")',diagonal(sqrt(st_matrix("e(V)"))))
Y=(Y,Y[.,1]:+invttail(st_numscalar("e(df_r)") ,1-0.05/2):*Y[.,2], /*
*/Y[.,1]:-invttail(st_numscalar("e(df_r)") ,1-0.05/2):*Y[.,2])
Y
st_matrix("mymat",Y)
end
cap ssc inst xml_tab
xml_tab mymat, replace
!start C:\Users\ma\Documents\Stata/stata_out.xml
************
HTH
Martin
_______________________
----- Original Message ----- 
From: "Michael Crain" <[email protected]>
To: "Statalist" <[email protected]>
Sent: Sunday, March 08, 2009 6:32 PM
Subject: st: Adjusting column width after using -total-
I have been unable to find the way to adjust the column width for the 
output of -total- to eliminate the exponential notation.
Here is an example of my problem:
. total var1 var2 var3 var4 var5
The output is:
--------------------------------------------------------------
         |      Total   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
     var1 |    6263871   5589.939       6252915     6274827
     var2 |   66438.84   749.6557      64969.54    67908.14
     var3 |   2.34e+07   38968.01      2.33e+07    2.35e+07
     var4 |   165974.9   2500.781      161073.4    170876.4
     var5 |   2.36e+07    40196.9      2.35e+07    2.37e+07
--------------------------------------------------------------
I
want to eliminate the exponential notation in these two instances in
the 'total' column (i.e., var3 and var5) and display the entire numbers
instead. I tried using -format- to change the formatting of these two
variables but that had no effect on the output above.
How can I get the output using -total- without exponential notation?
Stata version 10.1 SE (Windows)
Thanks.
_________________________________________________________________
Windows Live™ Contacts: Organize your contact list.
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009
*
*   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/
*
*   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/