Statalist


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

Re: st: RE: histogram, read axes


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: RE: histogram, read axes
Date   Mon, 8 Dec 2008 14:24:53 -0500

Richard Boylan <[email protected]>:
If you want to loop over values and run -twoway__histogram_gen- for
each distinct value, you can use -levelsof- and -foreach-.  -byhist-
on SSC uses the "total" category to pick bins using
-twoway__histogram_gen-, i.e. it uses the marginal distribution across
all by() groups.  In general, if you are comparing histograms it is
advantageous to use a common bin specification IMHO.

On Mon, Dec 8, 2008 at 2:11 PM, Richard Boylan <[email protected]> wrote:
> Thanks, although the option "by()" is not allowed with
> twoway__histogram_gen mpg
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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