There is some related discussion at
(mailer may split URL)
http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalis
t.0302/Author/article-604.html
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
with
. catplot bar myvar, stack asyvars
Nick
[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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/