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]
RE: Re: st: Re: Scatterplot of mean values
From
"Nick Cox" <[email protected]>
To
<[email protected]>
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
[email protected]
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/