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

Re: st: graph oneway


From   "Neil Shephard" <mdeasnds@fs1.ser.man.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph oneway
Date   Mon, 16 Aug 2004 14:02:34 +0100

Agnes Nocon wrote...

> I'm using Stata version 8.2, which changed a lot from version 7 to 8.
> I want to compare one-dimensional frequency plots just like they were
> possible with Stata 7. The correct command for this would be
> 
> graph7 var1 var2 var3, oneway.
> 
> However, this graph7 command is very fixed, and one cannot add axes or
> display the categories on the y-axis. Did Stata delete this command or
> is it hidden in some other? Does anybody have an idea how to draw the
> graph I need with an x-axis (metric variable) and an y-axis displaying
> the categories? (horizontal box-plots don't help, because they do not
> show the individual values)

You might want to have a look at Nick Cox's Stata8 version of oneway...

. ssc describe onewayplot
. ssc install onewayplot [, replace]

Which should give you all the flexibility you need (although you may need to get 
accustomed to the new syntax, so a copy of the [G] manual would be usfeul).

You may also find the Stata Library - Graph Examples at UCLA useful in learning the 
new graphics commands (see 
http://www.ats.ucla.edu/stat/stata/library/GraphExamples/default.htm)

HTH's

Neil

Neil Shephard
Genetics Statistician
ARC Epidemiology Unit, University of Manchester
neil.shephard@man.ac.uk
neil.shephard@mindless.com

"If your result needs a statistician then you should design a better experiment" - 
Ernest Rutherford

*
*   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