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

re: st: easy histogram


From   David Airey <david.airey@vanderbilt.edu>
To   statalist@hsphsun2.harvard.edu
Subject   re: st: easy histogram
Date   Fri, 28 Feb 2003 20:45:28 -0600

David makes a good point for removing the option for -histogram-, and we will
remove the checkboxes for log scales from the easy graph dialog for
-histogram-.

However, the "full featured" dialog for -histogram- will remain the same since
both -xscale(log)- and -yscale(log)- are valid -graph twoway- options.

--Jeff
jpitblado@stata.com
This reply beats around the bush and doesn't explain to me why "histogram mpg, xscale(log)" would ever make sense. That is really my question; I'm ignorant of the answer.

Jeff's answer that histogram's option xscale is valid because it is a twoway explains why histogram inherits these options. That doesn't mean the design choice is a good one. The area under the histogram should sum to 1 when the yaxis is density, as stated in the manual. I don't think when xscale(log) is used it will (though I have not measured). If it doesn't, then the option is pointless (the option is not pointless for other graph twoway commands like scatter).

Perhaps not all daughters of the mother twoway should inherit certain twoway options?

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