Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: graph: cross-plot of means


From   Kurmas Akdogan <kurmas1@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: graph: cross-plot of means
Date   Wed, 19 Jun 2002 07:11:15 -0700 (PDT)

--- Nick Winter <nwinter@policystudies.com> wrote:
> > -----Original Message-----
> > From: Kurmas Akdogan [mailto:kurmas1@yahoo.com] 
> > Sent: Tuesday, June 18, 2002 10:40 AM
> > To: statalist@hsphsun2.harvard.edu
> > 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.
> > 
> > Thanks
> 
> 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?
> 
> --Nick Winter
> 
Thank you Nick, that was what I was searching for... Eight points, one for
each year. Thanks...

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index