Perfect, thanks Nick.
Carter Rees
School of Criminal Justice
University at Albany, SUNY
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Wednesday, August 30, 2006 12:21 PM
To: [email protected]
Subject: st: RE: Scatter Plot Descriptives
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/
*
* 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/