Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying results in full form - double format

    Hi All,

    I am using the following command, in stata 13.1

    total subsidyamt, over(fiscal_year1)

    to calculate the total amount of subsidy provided in each fiscal year, however, the results display the total subsidy amount in their scientific notation, is there a way by which we could display the results in full form integers, FYI, the display needs to be in double format

    At present the results are displayed as below

    Over Total Std. Err. [95% Conf. Interval]

    subsidyamt
    1993 566000 12070.11 542342.9 589657.1
    1994 4.54e+07 107917.5 4.52e+07 4.56e+07
    1995 6.38e+07 128991.8 6.36e+07 6.41e+07
    1996 7.34e+07 141826.7 7.31e+07 7.36e+07
    1997 8.54e+07 158783.3 8.51e+07 8.58e+07
    1998 9.23e+07 168680.5 9.20e+07 9.26e+07
    1999 1.10e+08 191806.5 1.09e+08 1.10e+08
    2000 1.28e+08 203604 1.28e+08 1.29e+08
    2001 1.15e+08 200214.9 1.14e+08 1.15e+08
    2002 1.14e+08 197153.4 1.14e+08 1.14e+08
    2003 8.37e+07 175729.6 8.33e+07 8.40e+07
    2004 1.16e+08 207778.1 1.15e+08 1.16e+08
    2005 1.16e+08 208659.8 1.15e+08 1.16e+08
    2006 1.29e+08 199145.2 1.28e+08 1.29e+08
    2007 1.18e+08 205689.4 1.18e+08 1.19e+08
    2008 2.10e+08 218814.2 2.10e+08 2.11e+08
    2009 2.56e+08 247226.8 2.56e+08 2.57e+08
    2010 2.18e+08 218655 2.17e+08 2.18e+08
    2011 1.84e+08 204790.8 1.84e+08 1.84e+08
    2012 5.70e+08 534520 5.69e+08 5.71e+08
    2013 1.04e+09 720283.5 1.04e+09 1.04e+09
    2014 6.10e+08 561786.4 6.09e+08 6.11e+08
    2015 3.57e+08 441164.8 3.56e+08 3.58e+08
    2016 2.55e+07 214876.5 2.50e+07 2.59e+07
    2018 9.39e+07 163531.4 9.36e+07 9.42e+07


    ----------------------- copy starting from the next line -----------------------
    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input long subsidyamt float fiscal_year1
    30000 1953
    30000 1969
    30000 1982
    10000 1993
    10000 1993
    ....
    10000 1993
     7000 1993
     7000 1993
     7000 1993
     7000 1994
    10000 1994
    10000 1994
    ...
    10000 1994
    10000 1994
     7000 1994
    10000 1994
    10000 1994
    10000 1994
    10000 1994
    end
    ------------------ copy up to and including the previous line ------------------

    Listed 100 out of 366242 observations
    Use the count() option to list more

    Thank you.

  • #2
    double is a storage or variable type, not a display format.

    See the help for total to find that it has a cformat() option, which you can try. In my experience it's often ignored, presumably because there just isn't enough space to honour the request.

    That said, if your totals are tens of millions .. billions, then surely the thing to do is change the units, e.g. divide by a million so that what you see are tens ... thousands.

    Comment


    • #3
      I tried cformat() but it did not work. And, also tried extracting the results into excel, but dividing to change the units was the simplest, also in terms of maintaining precision.

      Thank you so much.

      Comment

      Working...
      X