Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: table, format


From   [email protected]
To   [email protected]
Subject   Re: st: table, format
Date   Fri, 07 May 2004 11:32:13 -0500

Hans,

I believe you need to increase the format width.

For example

. l

     +------------------------------------------+
     |      var1         var2       var3   var4 |
     |------------------------------------------|
  1. | 1.230e+09   1234567890   12345678      1 |
     +------------------------------------------+

. table var4 , c(sum var1 sum var2 sum var3) format(%9.2f)

----------------------------------------------
     var4 |  sum(var1)   sum(var2)   sum(var3)
----------+-----------------------------------
        1 |   1.23e+09    1.23e+09    1.23e+07
----------------------------------------------

. table var4 , c(sum var1 sum var2 sum var3) format(%13.2f)

-------------------------------------------------------
     var4 |     sum(var1)      sum(var2)      sum(var3)
----------+--------------------------------------------
        1 | 1230000000.00  1234567890.00    12345678.00
-------------------------------------------------------


Hope this helps,
Scott

----- Original Message -----
From: "Hans J.  Baumgartner" <[email protected]>
Date: Friday, May 7, 2004 7:42 am
Subject: st: table, format

> Dear statalist,
> 
> I wonder, why the table command does ignore my format settings.
> What I want to see in the table is, for instance, 1,210,000,000 
> instead 
> of 1.2e9.
> What is it that is needed to be changed.
> Cheers
> Hans
> 
> .  #delimit ;
> .  table eins [iw=phrfk], c(sum uni sum bafd sum bafj sum bafjahr) 
> format(%9.2f) ;
> 
> ------------------------------------------------------------------
>      eins |     sum(uni)     sum(bafd)     sum(bafj)  sum(bafjahr)
> ----------+-------------------------------------------------------
>         1 |     1.86e+06     259604.94      9.79e+08      1.21e+09
> ------------------------------------------------------------------
> 
> -- 
> Hans J. Baumgartner
> DIW Berlin
> German Institute for Economic Research
> Dept. Public Economics
> K�nigin-Luise-Str. 5; 14195 Berlin; Germany
> Tel.: +49/30/89789-307; Fax.: +49/30/89789-114
> http://www.diw.de
> http://www.hansbaumgartner.de
> 
> 
> *
> *   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/
> 


*
*   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/



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