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

RE: st: Rounding

From   "Martin Weiss" <>
To   <>
Subject   RE: st: Rounding
Date   Thu, 11 Feb 2010 20:29:50 +0100


Maarten`s recommendation does work for this command:

webuse nhanes2b, clear
svy: tabulate race diabetes, row se ci format(%7.4f)
estimates table, b(%20.19fc) style(oneline)


-----Original Message-----
[] On Behalf Of Luciana Zilberman
Sent: Donnerstag, 11. Februar 2010 19:00
Subject: Re: st: Rounding

svy linearized : tabulate disnm sex, stdize(ageg) stdweight(agewt) row ci se

>>> Maarten buis <> 2/11/2010 10:12 AM >>>
--- On Thu, 11/2/10, Luciana Zilberman wrote:
> Can you tell Stata not to round up
> the numbers in the output, so that it shows all digits?

What command are you using? If we look at -regress- it shows
7 digits, which is, in practically all cases, more than the 
maximum number of digits we can expect to be reliably estimated.
To put it differently, the last digits are more likely to be 
random noise than contain any real information.

Having given the appropriate warning not to do this, you can 
increase the number of digits by redisplaying the results 
with -est table-, as in the example below:

*--------- begin example ---------
sysuse auto
reg price mpg
est table, b(%12.10g) ///
*---------- end example -----------
( For more on how to use examples I sent to statalist see: )

If the aim is to do further computation with these estimates
you are better of working directly with the returned results.
See for example: Maarten Buis (2007) Stata tip 54: Where did 
my p-values go? The Stata Journal, 7(4):584--586.

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

*   For searches and help try:

*   For searches and help try:

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