Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: Bar graph with frequency


From   "Ray Hawkins" <[email protected]>
To   <[email protected]>
Subject   RE: st: Bar graph with frequency
Date   Thu, 4 Apr 2013 11:01:43 -0500

Hi Billy,

I could not find the answer for my question in -blabel()- option. Can you
please give me a detailed help? Thank you,

Ray.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of William Buchanan
Sent: Thursday, April 04, 2013 10:32 AM
To: [email protected]
Subject: Re: st: Bar graph with frequency

Check -h gr bar- and look for the option -blabel()-.

HTH,
Billy


On Apr 4, 2013, at 8:27 AM, "Ray Hawkins" <[email protected]> wrote:

> Hello,
> 
> I am trying to classify "sale" into 10 groups by equal interval and 
> make a bar graph like the following. How can I put frequency in each 
> group in the bar graph?
> 
> egen salecat=cut(sale), at(0 (10) 100) graph bar (mean) ad, 
> over(salecat)
> 
> sale	ad
> 0.4	0.0
> 5.7	0.5
> 15.7	3.4
> 19.1	3.8
> 21.2	4.1
> 25.5	10.8
> 40.0	4.8
> 47.4	12.3
> 62.0	7.5
> 64.2	16.5
> 67.4	10.2
> 91.8	7.0
> 92.2	14.0
> 
> Thank you for your help.
> Ray Hawkins.
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index