Statalist


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

st: AW: numeric format


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: numeric format
Date   Fri, 14 Aug 2009 18:41:51 +0200

<> 



*************
clear*
set obs 10000

gen x=rnormal(10000000)   

gen id =_n<=5000

table id, contents(mean x)
table id, contents(mean x) /* 
 */ format(%11.0fc)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Sandra Rayman
Gesendet: Freitag, 14. August 2009 18:33
An: statalist@hsphsun2.harvard.edu
Betreff: st: numeric format

Dear listers,

This is my first question to Statalist, and I'm afraid it's a bit of a
basic one. I need a basic table of statistics and the problem I am
having is that the numbers are shown in exponential rather than
regular format. From the help function I read how to use the format
command but the problem remains.

I am using survey data and just need a basic table of the number of
people, in each year, by race. The command I am using is:
table date race [fweight = weight], format(%15.0g)

I have tried increasing the number in the format command more and more
(e.g. format(%18.0g)) but all that happens is that the columns get
wider and the numbers are shown as e.g. 1.16e+07 whereas I need the
full numbers. I know this should be easy, but from the help function
and statalist archive I can't figure out how to do it.

yours,
Sandy
*
*   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/



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