Thanks, Scott. Can this be done in Stata version 9?
Shehzad
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Scott Merryman
Sent: 13 August 2008 16:15
To: [email protected]
Subject: Re: st: Graph bar with stack
You could use the Graph Editor to add the mean values.
Scott
On Tue, Aug 12, 2008 at 12:02 PM, Shehzad Ali <[email protected]> wrote:
> Hi,
>
> This is probably a simple question. I have two groups of people, call them
> u0 and u1. I want to plot the percentage contribution of different types
of
> expenditure (food, clothes, travel etc.) that adds up to their annual
> expenditure. I am using bar graph with stack option to display the
> percentage contributed by type of expenditure, call them x1 x2 .. xn. But
> besides percentage contribution I also want stata to display mean values
of
> each type of expenditure for each group.
>
> Here is the code I am using:
>
> graph bar x1 x2 ... xn, over(u) percentages stack
>
> How can I display mean of each x on the graph?
>
> Thank you,
>
> Shehzad
*
* 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/
Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.4.6/1540 - Release Date: 08/07/2008
06:33
*
* 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/