Statalist


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

Re: st: overlaying two histograms (or distribution curves)


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: overlaying two histograms (or distribution curves)
Date   Fri, 20 Nov 2009 09:36:13 -0500

ssc inst byhist
sysuse auto, clear
byhist price, by(foreign)
tw kdensity price if foreign||kdensity price if !foreign

On Fri, Nov 20, 2009 at 8:58 AM, Ariel Linden, DrPH
<alinden@lindenconsulting.org> wrote:
> Hi Listservers,
>
> Is there a way to overlay one histogram (or just the density curve)over
> another so that they align accordingly (as we've all seen on the first day
> of any statistics course)?
>
> If possible please use the auto data: price by (foreign) as an example
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index