Statalist The Stata Listserver


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

st: RE: formatting for significant figures


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: formatting for significant figures
Date   Wed, 10 May 2006 15:10:18 +0200

-format trite %9.2e-
HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of b. water
Sent: woensdag 10 mei 2006 15:06
To: statalist
Subject: st: formatting for significant figures

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/

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