Here is an example that may get you started:
sysuse auto
reg price weight
local ar2 = e(r2_a)
local ar2 : di %5.3f `ar2'
twoway lfit price mpg || scatter price mpg , note(Adj. R2 = `ar2')
Basically, save the value as macro, format it, and add it to the graph.
Hope this helps,
Scott
----- Original Message -----
From: Dick Campbell <[email protected]>
Date: Thursday, March 17, 2005 2:47 pm
Subject: st: Incorporating values of variable or parameter estimates in graph titles and labels
> 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.
>
> Richard T. Campbell
*
* 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/