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: Graph for three variables


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Graph for three variables
Date   Mon, 13 Jan 2014 12:07:24 +0000

The structure and character of the data are not clear here. Assuming
that the data refer to people, it seems unlikely that one and only one
food group was consumed on each day. That being so, the numbers of
days are not additive.

Nick
[email protected]

On 13 January 2014 04:21, Red Owl <[email protected]> wrote:
> Almazea,
>
> Perhaps you could do something like this:
>
> ** Begin Stata code ***
> graph bar (mean) days, hor over(food) over(region) ///
> asyvars bargap(10) stack percentages name(graph1)
>
> graph bar (mean) days, hor over(food) ///
> asyvars bargap(10) stack percentages name(graph2)
>
> graph combine graph1 graph2, rows(1) name(combined)
> *** End Stata code***
>
> If you would rather have vertical bars, just remove
> -hor- from the options above.
*
*   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