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

From |
Florian Wakolbinger <wakolbinger@drei-e.at> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: frequency bar charts of string variables |

Date |
Wed, 22 Jul 2009 22:12:07 +0200 |

dear all, i have another question related to my previous one:

thanks again very much for your replies, best, Florian Nick Cox schrieb:

There are commands to do this, which I presume is what you want. Inofficial Stata it is not too difficult. First read in suitable data. sysuse auto (1978 Automobile Data) Suppose that -foreign- were a string variable, which we can simulatewith. decode foreign, gen(Foreign)Now go. gen one = 1 . graph hbar (sum) one, over(Foreign) ytitle(frequency) However, the user-written command -catplot- from SSC may prove moreconvenient.. catplot hbar Foreign For -hbar- read also -bar-, for vertical versions usually more difficultto read.Nickn.j.cox@durham.ac.ukFlorian Wakolbinger is there an option in stata to draw bar charts of string variables, i.e.if the variable contains 40 "yes" and 60 "no", to draw a chart with twobars of height 40 and 60?to put it differently, is there an option to visualize the results ofthe command tab varname* * 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/

-- Dr. Florian Wakolbinger 3E - Haigner/Jenewein/Wakolbinger Amraserstrasse 15 6020 Innsbruck www.drei-e.at +43 (0)664 638 5993 * * 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: RE: frequency bar charts of string variables***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**RE: st: RE: frequency bar charts of string variables***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**References**:**st: frequency bar charts of string variables***From:*Florian Wakolbinger <wakolbinger@drei-e.at>

**st: RE: frequency bar charts of string variables***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: Customized Toolbars in Stata 11** - Next by Date:
**RE: st: RE: frequency bar charts of string variables** - Previous by thread:
**RE: st: RE: frequency bar charts of string variables** - Next by thread:
**RE: st: RE: frequency bar charts of string variables** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |