Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Natalie Doss <ndoss@uchicago.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: pattern-fills in stacked bar graph |

Date |
Wed, 26 May 2010 13:06:54 -0500 |

Okay, thanks very much! Sincerely, Natalie On Wed, May 26, 2010 at 12:43 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote: > I see. Well, until and unless Sergiy explains how to apply pattern fills to your problem -- in this thread and previously I've signalled my personal dislike of such fills but so be it -- and presuming that colour is out of the question for some reason, then try different gray scales. > > Nick > n.j.cox@durham.ac.uk > > Natalie Doss > > Ah, thank your clarifying. Yes, I was aware that I am stacking means, > and that is what I want to do. The gaps I am stacking are the > contributions of background variables to the mean total income gap. > > On Wed, May 26, 2010 at 12:16 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote: >> Sorry, but that's not my point. -graph bar- by default plots means, so you are stacking means on top of each other. The question is whether that matches the science of what you are doing. >> >> In essence, I see a case logically for stacking whatever can be combined additively, so sums and frequencies are cases in point. That could apply to means too, but it seems less common. As you're new to Stata, I wanted to check that you understood that -graph bar- does that by default. I know a bit about Stata but I don't know what income gaps are precisely, so that's what you have to spell out. >> >> Nick >> n.j.cox@durham.ac.uk >> >> Natalie Doss >> >> Yes, the variables should be called mean_gap_ed, etc..I used shortened >> names to simplify. >> >> On Wed, May 26, 2010 at 12:05 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote: >> >>> So, you are stacking _means_ ? Actually, that's not a question. >>> You are stacking means. Is that what you want to do? >> >> Natalie Doss >> >>> Thank you. Here is an example similar to my data, but simpler: >>> >>> x-variable: gender, taking values 0 and 1. >>> y-variables: income gap, divided into 3 components: >>> gap_ed, gap_exp, gap_unknown >>> >>> I am using Stata 10.0. Without trying to use pattern fills, this is >>> very easy to do using the "bar graph" command. As in: >>> >>> graph bar gap_ed gap_exp gap_unknown, over(gender) stack >>> >>> On Wed, May 26, 2010 at 2:56 AM, Martin Weiss <martin.weiss1@gmx.de> >>> wrote: >>> >>>> It is difficult to advise you on this, as we do not have your data. >>> Maybe >>>> give an excerpt. Also, you should say that -tw parea- is user-written >>> by >>>> Sergiy. >>> >>> Natalie Doss >>> >>>> I am trying to do a stacked bar graph with different pattern fills. I >>> have 4 >>>> outcomes and 7 components to each outcome. I am confused about how to >>> use >>>> twoway >>>> parea to make a bar graph. I believe I have to reorganize my data a >>> fair >>>> amount, but am unsure of what exactly I need. An earlier thread on >>> this said >>>> that the collapse and contract commands would be most useful, but I'm >>> pretty >>>> new to stata and am wondering if anyone has more specific ideas. >>> >> >> * >> * 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/ >> > > > > -- > Natalie Doss > The University of Chicago > Class of 2010 > ndoss@uchicago.edu > (352) 275-2620 > > * > * 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/ > > * > * 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/ > -- Natalie Doss The University of Chicago Class of 2010 ndoss@uchicago.edu (352) 275-2620 * * 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/

**References**:**st: pattern-fills in stacked bar graph***From:*Natalie Doss <ndoss@uchicago.edu>

**Re: st: RE: pattern-fills in stacked bar graph***From:*Natalie Doss <ndoss@uchicago.edu>

**RE: st: RE: pattern-fills in stacked bar graph***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**Re: st: RE: pattern-fills in stacked bar graph***From:*Natalie Doss <ndoss@uchicago.edu>

**RE: st: RE: pattern-fills in stacked bar graph***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**Re: st: RE: pattern-fills in stacked bar graph***From:*Natalie Doss <ndoss@uchicago.edu>

**RE: st: RE: pattern-fills in stacked bar graph***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: RE: Using regex to identify strings with capital letters** - Next by Date:
**Re: st: Survival analysis multiple events** - Previous by thread:
**RE: st: RE: pattern-fills in stacked bar graph** - Next by thread:
**RE: st: RE: pattern-fills in stacked bar graph** - Index(es):