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

st: RE: Graph Bar


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: Graph Bar
Date   Tue, 27 Sep 2005 14:05:23 -0500

Katy,

I believe what you want is simply:

graph bar ecexist, over(year)

Using an example data set:

. use http://www.stata-press.com/data/r9/union.dta
(NLS Women 14-24 in 1968)

. graph bar union , over(year)

Or maybe

. graph bar union, over(year) exclude0


Note:  HTML messages are deprecated on Statalist.  See
http://www.stata.com/statalist/archive/2003-02/msg00259.html


Hope this helps,
Scott

________________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Katarina Sikavica
Sent: Tuesday, September 27, 2005 11:35 AM
To: [email protected]
Subject: st: Graph Bar

dear stata-users:

I have just started with stata graphics and have the following problem with
the graph bar:

I have a database thant contains data on the existence of audit committees
("acexist") (in total there are 761 companies, 533 of them having an audit
committee, 228 not). I would like to draw a graph bar that shows the
increase in audit committee incidence over year.
Drawing a graph bar on the increase in the number of audit committees works
fine; however, as the data from 2000 and 2001 are of poor quality I would
like to have percentages of audit committee incidence over the years
2000-2004 (that is: 47.27% (2000); 71.76% (2001); 66.01% (2002); 73.08%
(2003); 76.19% (2004)). neither of the following commands leads to the
desired results:

. graph bar (sum) ecexist, over (year) percent
. graph bar (sum) ecexist, over (year) asyvar percentages

I am sure this is an easy question for you stata specialists out there! Many
thanks for your help in advance!

Best,
Katy



*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index