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 |
Jeph Herrin <junk@spandrel.net> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: bar graph question |

Date |
Sat, 20 Feb 2010 16:17:41 -0500 |

I have a categorical variable, -var-, which takes 5 values. I would like a bar graph which has a bar representing the % in each category. Eg, if this is my variable var1 | Freq. Percent Cum. ------------+----------------------------------- Excellent | 278 24.26 24.26 Very Good | 526 45.90 70.16 Acceptable | 282 24.61 94.76 Poor | 54 4.71 99.48 Failing | 6 0.52 100.00 ------------+----------------------------------- Total | 1,146 100.00 I would like the graph to have the first bar labelled Excellent and be 24% high; the second labelled "Very Good" and be 46% high, etc. Five bars. I know I can get there by collapsing or reshaping the data, but it seems like this should be a trivial graph to produce directly. If so, how? If not, why not? thanks, Jeph * * 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/

**Follow-Ups**:**Re: st: bar graph question***From:*Scott Merryman <scott.merryman@gmail.com>

- Prev by Date:
**Re: st: Adding the marginal effects at individual values of a continous regressor to the data** - Next by Date:
**Re: st: bar graph question** - Previous by thread:
**Re: st: Adding the marginal effects at individual values of a continous regressor to the data** - Next by thread:
**Re: st: bar graph question** - Index(es):