| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: formatting for significant figures
What you probably want is a g format. For instance, I usually use the
format %8.2g to get data to 2 significant figures (converting to an
e-format for x.yx10^(+/-6)).
Hope this helps.
Roger
Roger Newson
Lecturer in Medical Statistics
POSTAL ADDRESS:
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute at Imperial College London
St Mary's Campus
Norfolk Place
London W2 1PG
STREET ADDRESS:
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute at Imperial College London
47 Praed Street
Paddington
London W1 1NR
TELEPHONE: (+44) 020 7594 0939
FAX: (+44) 020 7594 0942
EMAIL: [email protected]
WEBSITE: http://www.imperial.ac.uk/nhli/r.newson/
Opinions expressed are those of the author, not of the institution.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of b. water
Sent: 10 May 2006 14: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/