Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: st: Re: Scatterplot of mean values


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: Re: st: Re: Scatterplot of mean values
Date   Wed, 31 Mar 2010 17:31:12 +0100

You can do this with -bandplot- from SSC mentioned earlier. The syntax is quite different, but being able to combine means of different variables by groups of different categorical variables is entirely possible. The help does give relevant examples. 

Nick 
n.j.cox@durham.ac.uk 

Martin Weiss

You can form groups of "rep78" and "foreign" beforehand via -egen, group()-,
and subsequently operate on the resulting variable instead...

Fernando Terrés

Lastly, following any of these approaches, could it be possible to 
represent in the same plot the mean values over several categories?
Let us say:
mean(mpg) mean(weight), by(rep78) || mean(mpg) mean(weight), by(foreign)

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index