Bookmark and Share

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   Paolo Moncagatta <[email protected]>
To   statalist <[email protected]>
Subject   Re: st: bar graph for means of different countries AND grandmean?
Date   Fri, 7 Feb 2014 15:55:56 +0100

Thank you very much for your advice Nick. It is, as always, well appreciated.
Best regards,

Paolo

On Thu, Feb 6, 2014 at 8:20 PM, Nick Cox <[email protected]> wrote:
> 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/
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index