Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Tabulate, Bar graphs, and string variables


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: RE: Tabulate, Bar graphs, and string variables
Date   Fri, 05 Mar 2004 17:19:46 +0000

At 16:39 05/03/04 +0000, Nick Cox wrote (in reply to Robin Newberry):
Use

-catplot- from SSC

or

-histogram, discrete- after -encode-.
Or Robin could use -histogram, discrete- after -sencode- (downloadable from SSC), if he wants the bars to be ordered non-alphabetically. Another possibility is to use -xcontract- (also downloadable from SSC), and then to use -twoway bar- on the output data set produced by -xcontract-, which contains both frequencies and percentages.

I hope this helps.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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