[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: graph: cross-plot of means
> -----Original Message-----
> From: Kurmas Akdogan [mailto:email@example.com]
> Sent: Tuesday, June 18, 2002 10:40 AM
> To: firstname.lastname@example.org
> Subject: st: graph: cross-plot of means
> Hi everybody,
> I want to make a cross-plot of 'means' of two variables (say A and B)
> against a time variable (from 1993 to 2000).
> Y axis: means of A from 1993 to 2000
> X axis: means of B from 1993 to 2000
> I use stata 6.0.
I'm not entirely sure what you want here - is it eight points, one for
each year, of the mean of A against the mean of B? If so, then this
should do it:
. collapse A B , by(year)
. gr A B
You can trace out the time path of the points by sorting in date order
and the connecting the dots:
. sort year
. graph A B , c(l)
If that's not what you want, maybe you could clarify?
* For searches and help try: