Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Re: Scatterplot of mean values
From
Fernando Terrés <[email protected]>
To
[email protected]
Subject
st: Re: Scatterplot of mean values
Date
Wed, 31 Mar 2010 13:55:08 +0200
Martin, perhaps I didn't explain it correctly
Let us say that, in the auto.dta dataset, I want to plot the mean values
of mileage against the mean values of weight, both means grouped by
repair record.
I could do:
*************
sysuse auto, clear
collapse mpg weight, by(rep78)
twoway (scatter mpg weight)
*************
My problem is that I need to do the same task for several categorical
variables of a large file, and every collapse forces me to upload the
dataset again.
Thanks again,
Fernando
--
Fernando Terres
Lecturer. PhD candidate
CERPIE/Research
Universitat Politecnica de Catalunya
Diagonal, 647 - 10
08028 Barcelona (Spain)
+34.934.010.708
[email protected]
http://cerpie.upc.edu
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/