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: st: bar graph for means of different countries AND grandmean?
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: bar graph for means of different countries AND grandmean?
Date
Thu, 6 Feb 2014 19:20:19 +0000
Precisely the same question was asked in
http://www.stata.com/statalist/archive/2014-01/msg01098.html
so follow through to the advice by
Scott Merryman: add an extra observation temporarily
myself: -expand- the dataset temporarily.
A Tip on the -expand- strategy is in press at the Stata Journal.
Nick
[email protected]
On 6 February 2014 18:58, Paolo Moncagatta <[email protected]> wrote:
> I would like to produce a bar graph which shows the mean test score
> for each one of 20 countries, but which also shows the "grandmean"
> test score of the 20 countries aggregated (so, 21 bars in total).
>
> I have first collapsed my data like this:
>
> collapse testscore, by(country)
>
> and then I have tried to produce de graph using:
>
> graph hbar testscore , over(country)
>
> but I have not been able to figure out the way to ALSO include the
> "grandmean" in the graph. Hope some can help me out!
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/