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 on April 23, and its replacement, 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" <>
To   <>
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. 


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:

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