Statalist The Stata Listserver

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

st: RE: RE: Scatter Plot Descriptives

From   "Carter Rees" <>
To   <>
Subject   st: RE: RE: Scatter Plot Descriptives
Date   Wed, 30 Aug 2006 12:46:47 -0400

Perfect, thanks Nick.

Carter Rees
School of Criminal Justice
University at Albany, SUNY

-----Original Message-----
[] On Behalf Of Nick Cox
Sent: Wednesday, August 30, 2006 12:21 PM
Subject: st: RE: Scatter Plot Descriptives

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


. sysuse auto, clear
(1978 Automobile Data)

. corr turn length

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


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:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index