Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Formatting very small values in percentage or basis points


From   "Friederich,SJ" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Formatting very small values in percentage or basis points
Date   Wed, 8 Jan 2003 19:01:50 -0000

Thanks for your comments. (Sorry, just forgot the negative sign when typing up what I was after, nothing to be interpreted from this!).
 
I thought the "e" format would get me somewhat closer to what I want (something like -5.052e-04) but that doesn't appear to work, I'm not sure why. I'll use your suggested solution, thanks.
 
Sylvain

	-----Original Message----- 
	From: Nick Cox [mailto:[email protected]] 
	Sent: Wed 08/01/2003 18:45 
	To: [email protected] 
	Cc: 
	Subject: st: RE: RE: Formatting very small values in percentage or basis points
	
	

	Sylvain Friederich
	
	> > Is someone aware of a way to get Stata to display (say,
	> in a -summarize-
	> > command) a very small value such as:
	> > 
	> > -.0005052
	> > 
	> > ...formatted as:
	> > 
	> > 5.052
	> > 
	> > (i.e. in "basis points", one-hundredth of a percentage point)
	> > 
	> > Hoping I'm not missing something obvious - thanks for any views.
	
	Lee Sieswerda
	
	> You could create a new variable that is the original
	> variable multiplied by
	> 10000. As in:
	>
	> gen x_basis = x*10000
	> summ x_basis
	
	I agree with Lee. This looks like more than a formatting
	issue: it is a question of transformation.
	
	Incidentally, what happened to the negative sign?
	
	Nick
	[email protected]
	*
	*   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/
	

<<winmail.dat>>




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