Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: variable format (graphics example)
From 
 
"Feiveson, Alan H. (JSC-SK311)" <[email protected]> 
To 
 
"[email protected]" <[email protected]> 
Subject 
 
RE: st: variable format (graphics example) 
Date 
 
Thu, 10 Mar 2011 16:12:01 -0600 
Daniel - That's because I was trying to implement -tostring- by hand! 
Thanks for making me aware of it.
Al
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Klein
Sent: Thursday, March 10, 2011 3:59 PM
To: [email protected]
Subject: RE: st: variable format (graphics example)
Changing
. gen ru = round(u,.01)
to 
. tostring u ,g(ru) format(%9.2f) force
in your example, might be what you are looking for. However, I do not see how this is "too much work", so probably I don't see the point.
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
*
*   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/