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

RE: st: Incorporating values of variable or parameter estimates in graph titles and labels


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Incorporating values of variable or parameter estimates in graph titles and labels
Date   Thu, 17 Mar 2005 22:06:16 -0000

You can get the square symbol as a superscript 
even with font-challenged operating systems. 
This was discussed in a very recent thread with 
reference to a Stata Journal tip. 

Nick 
n.j.cox@durham.ac.uk 

Daniel Mueller
 
> After estimations type -eret list- and you'll, among others, 
>   see e(r2) to which you can refer as a local macro (`e(r2)')
> 
> In a graph you may do something like that:
> --
> sysuse auto
> reg mpg weight
> local r2 : di %6.0gc e(r2)
> twoway (scatter mpg weight), ///
> 	caption("R-Square is `r2'", ///
> 	position(2) ring(0) size(large) ///
> 	box bcolor(ltbluishgray))
> --
 
Dick Campbell

> I find myself wanting to include the values of saved 
> results, such as R-squared in the
> titles, notes, text etc for various plots that I want to 
> do. I can't 
> seem to find a discussion in the manuals
> or in the Mitchell book of how to do this. I know its 
> possible, but I  wonder if someone
> can direct me to a compact discussion.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index