Bookmark and Share

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]

st: format (decimals) in results stored


From   Leandro Brufman <[email protected]>
To   [email protected]
Subject   st: format (decimals) in results stored
Date   Wed, 2 Mar 2011 13:25:26 -0500

Hi Statalist,

I am trying to include results stored in r() in graphs. For instance,
to add them as labels in graphs - with suboptions xlabel(0(1)10
`r(mean)' "Mean") -
The only problem I have is that r(mean) includes a lot of decimals. I
would like to change the format, but only to the `r(mean)' (ie, its
not helpful to change the dispaly format of the whole x - i want
integers from 0 to 10 and then the mean with two decimals)

Many thanks in advance,
L.
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index