Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Scatter Plot Descriptives


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Scatter Plot Descriptives
Date   Wed, 30 Aug 2006 17:21:13 +0100

Issue your statistics commands before
the graph and then use -graph- to display results. 

Example: 

. sysuse auto, clear
(1978 Automobile Data)

. corr turn length
(obs=74)

             |     turn   length
-------------+------------------
        turn |   1.0000
      length |   0.8643   1.0000


. scatter turn length, subtitle("r = `: di %5.3f r(rho)'")

-correlate- leaves r(rho) in memory. Here I add 
a small flourish to supply a format on the fly. 
-help macro- and -help extended_fcn- supply more
details. Note carefully the single left ` and right ' 
quotes. 

Nick 
[email protected] 

Carter Rees
 
> I have created a twoway scatter plot and would like to 
> calculate the basic
> descriptive statistics of the data included in the graph.  There is a
> lengthy if statement included in the graph command.  
> 
> Is there an easy way to accomplish this via graph options?

*
*   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