Statalist


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

RE: st: Rounding


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
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)
*******


HTH
Martin

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

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


>>> Maarten buis <[email protected]> 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) ///
           se(%12.10g)
*---------- end example -----------
( For more on how to use examples I sent to statalist see:
http://www.maartenbuis.nl/stata/exampleFAQ.html )

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.
<http://www.maartenbuis.nl/publications/pvalue.html>

Hope this helps,
Maarten

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

http://www.maartenbuis.nl 
--------------------------


      

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

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index