Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: decimal points/format using outsum command


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: decimal points/format using outsum command
Date   Tue, 25 Mar 2008 11:12:40 -0000

-outsum- is a user-written command available from SSC. 

No such options are documented in the help, nor are there any such
undocumented. 

Your best question may be to clone the program, add a -format(str)-
option and then change lines like these 

      replace stats=string(round(`mean',0.0001)) in 1
      replace stats="("+string(round(`sd',0.0001))+")" in 2
      if "`noparen'"~="" {
        replace stats=string(round(`sd',0.0001)) in 2
      }
      if "`bracket'"~="" {
        replace stats="["+string(round(`sd',0.0001))+"]" in 2
      }

so that they look more like this 

      replace stats=string(`mean', "`format'")) in 1

Alternatively, writing your own program using -file- would be
instructive. 

Nick 
[email protected] 

daphna bassok

I am using the outsum command to create various descriptive tables. 
The command is extremely useful.  However, I can't seem to figure out 
how to adjust the decimal places for the means and standard 
deviations.  I know with outreg there are options such as bdec and 
tdec to do this.  Is there something similar for outsum?

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