Statalist The Stata Listserver


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

st: formatting for significant figures


From   "b. water" <[email protected]>
To   "statalist" <[email protected]>
Subject   st: formatting for significant figures
Date   Wed, 10 May 2006 13:05:36 +0000

hi all,

Stata 8.2,

Is there a way to format numericals results for significant figures. For example:

. sysuse auto

. gen trite=price/1000000

. l trite in 1/10, clean

         trite  
  1.   .004099  
  2.   .004749  
  3.   .003799  
  4.   .004816  
  5.   .007827  
  6.   .005788  
  7.   .004453  
  8.   .005189  
  9.   .010372  
 10.   .004082  

How can I format trite to display just 2 (or any number in general) significant figures? I looked at [R] Format,  [U] 15.5, help format, searched the list using 'signifcant figures' and Googled 'stata significant figures' but without success. Appreciate advice/help.

Regards,
bw

_________________________________________________________________
Join the next generation of Hotmail and you could win the adventure of a lifetime
http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
*
*   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