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

st: RE: Graph

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Graph
Date   Mon, 8 Dec 2003 11:14:03 -0000

There is some related discussion at
(mailer may split URL)

Using no more than official Stata, you need
something like

. gen freq = 1
. graph bar (sum) freq, over(myvar) stack asyvars

If you download -catplot- from SSC, you don't
need to create a new variable. You can get
this in one once you have installed by

. ssc inst catplot


. catplot bar myvar, stack asyvars

[email protected]

Finne H�kon

> In Stata 8, what is the -graph bar- equivalent of -graph
> pie , over(myvar)-
> ? That is, I want a single stacked bar showing the distribution over
> categories for myvar.

*   For searches and help try:

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