Bookmark and Share

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

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

st: Histogram, with customize intervals

From   Syed Basher <>
To   Statalist <>
Subject   st: Histogram, with customize intervals
Date   Mon, 9 May 2011 00:54:59 -0700 (PDT)

Dear Stata users,

I am using Stata 11.2. I want to draw a histogram for a continuous variable with the following intervals (0-250, 250-1000). I noticed that this is not straightforward in Stata. I found a user written code, "hist3", which allows me to get what I want:

hist3 price, v(250)

However, with hist3, the height of the bar reflects density (and area reflects frequency of the intervals). But I would like to express the height of the bar in percent (rather than density). Is there a way to do this in Stata? Thank you.

Syed Abul Basher
Qatar Central Bank
P.O. Box 1234
Doha, Qatar. ;

*   For searches and help try:

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