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

st: RE: RE: Graph Bar


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Graph Bar
Date   Tue, 27 Sep 2005 20:47:23 +0100

Scott is of course right here, as the 
mean of an indicator variable is the
proportion of whatever is coded 1. 
The tweak needed is to label in 
terms of percents if that is needed. 

For more complicated problems in this 
territory, the solutions in my earlier 
email may still be useful. 

Nick 
n.j.cox@durham.ac.uk 

Scott Merryman
 
> 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
> 

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