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

Re: st: Graph option for including saved results


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: Graph option for including saved results
Date   Mon, 21 Mar 2005 15:45:23 -0500

SOmthing like this?

. reg mpg price
. graph twoway lfit mpg price || scatter mpg price , note("R squared is `e(r2)'")


or better yet:

graph twoway lfit mpg price || scatter mpg price ,
note("R squared is `: di %4.3f `e(r2)''")


--Nick Winter

At 10:13 AM 3/21/2005 -0600, you wrote:

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 printed discussion.

Richard T. Campbell
University of Illinois at Chicago


*
* 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/
--------------------------------------------------------
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
308 White Hall falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601

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